/* ==========================================================================
   BẤT ĐỘNG SẢN ĐÀ NẴNG 247 - TRANG CHỦ (CLIENT HOME PAGE)
   Bảng màu 60-30-10: Trắng 60% (#fff), Xanh Cổ Vịt 30% (#003C47), Vàng Cam 10% (#FF9900)
   Phông chữ: Roboto | Native CSS Nesting | Border Radius <= 12px
   ========================================================================== */

.client-home-page {
  --home-primary: #003C47;
  --home-primary-dark: #00272E;
  --home-primary-hover: #002B33;
  --home-primary-light: rgba(0, 60, 71, 0.08);
  --home-primary-surface: #eff6f7;
  --home-accent: #FF9900;
  --home-accent-dark: #E68A00;
  --home-accent-light: rgba(255, 153, 0, 0.12);
  --home-ink: #17201f;
  --home-muted: #66736f;
  --home-line: #e3e9e7;
  --home-soft: #f4f8f7;
  overflow: hidden;
  color: var(--home-ink);
  background: #fff;
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.client-home-page :is(.client-sale-section, .client-rent-section, .client-area-section, .client-intro-section, .client-project-section, .client-partner-section, .client-utility-section, .client-blog-section) {
  position: relative;
}

.client-home-page :is(.client-sale-section, .client-rent-section, .client-project-section, .client-partner-section, .client-blog-section) {
  padding-top: clamp(4.8rem, 6vw, 8rem);
  padding-bottom: clamp(4.8rem, 6vw, 8rem);
}

.client-home-page :is(.sale-title, .rent-title, .area-section-title, .intro-title, .project-heading-title, .partner-heading-title, .blog-heading-title) {
  margin: 0;
  color: var(--home-ink);
  font-size: clamp(2.4rem, 2.8vw, 3.6rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.client-home-page :is(.sale-subtitle, .rent-subtitle, .area-section-desc, .project-heading-subtitle, .partner-heading-subtitle, .blog-heading-subtitle) {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  color: var(--home-muted);
  font-size: clamp(1.45rem, 1.5vw, 1.7rem);
  line-height: 1.65;
}

/* 1. KHỐI TÌM KIẾM HERO (SLIDER & SEARCH OVERLAY) */
.client-slide {
  .search-overlay {
    .search-bar {
      border: 2px solid rgba(0, 60, 71, 0.12) !important;
      border-radius: 12px !important;
      box-shadow: 0 8px 30px rgba(0, 60, 71, 0.14) !important;

      .input-wrapper {
        .icon-search {
          color: var(--home-primary, #003C47) !important;
        }

        input {
          font-family: inherit;
          color: var(--home-ink);

          &::placeholder {
            color: #8c9b99;
          }
        }
      }

      .btn-search {
        background: var(--home-primary, #003C47) !important;
        color: #fff !important;
        border-radius: 10px !important;
        font-weight: 700 !important;
        padding: 12px 28px !important;
        transition: all 0.25s ease !important;

        &:hover {
          background: var(--home-primary-dark, #00272E) !important;
          box-shadow: 0 4px 14px rgba(0, 60, 71, 0.35) !important;
          transform: translateY(-1px);
        }
      }
    }
  }

  .mobile-quick-actions {
    .action-card {
      border-radius: 12px !important;
      border: 1px solid var(--home-line) !important;
      background: #fff !important;
      box-shadow: 0 4px 14px rgba(0, 60, 71, 0.05) !important;
      transition: all 0.2s ease;

      &:hover {
        border-color: var(--home-primary) !important;
        color: var(--home-primary) !important;
      }
    }
  }
}

/* 2. NHÀ ĐẤT BÁN & CHO THUÊ (SALE & RENT SECTIONS) */
.client-home-page .client-sale-section {
  background: #fff;
}

.client-home-page .client-rent-section {
  border-top: 1px solid #edf1ef;
  border-bottom: 1px solid #edf1ef;
  background:
    radial-gradient(circle at 8% 10%, rgba(0, 60, 71, 0.04), transparent 25rem),
    var(--home-soft);
}

.client-home-page :is(.sale-grid, .rent-grid) {
  gap: clamp(1.6rem, 2vw, 2.4rem);
}

.client-home-page :is(.sale-item, .rent-item) {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 1px solid var(--home-line);
  border-radius: 12px !important;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 0.8rem 2.4rem rgba(0, 60, 71, 0.06) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;

  &:hover {
    border-color: rgba(0, 60, 71, 0.35) !important;
    transform: translateY(-0.4rem) !important;
    box-shadow: 0 1.4rem 3.6rem rgba(0, 60, 71, 0.12) !important;

    :is(.sale-img, .rent-img) img {
      transform: scale(1.035);
    }
  }

  .sale-label {
    background: var(--home-primary) !important;
    color: #fff !important;
    border-radius: 6px !important;
    font-weight: 700;

    &.expired {
      background: #64748b !important;
    }
  }

  .sale-img-label {
    span {
      color: #fff;
    }
  }
}

.client-home-page :is(.sale-img, .rent-img) {
  height: clamp(19rem, 17vw, 23rem) !important;
  overflow: hidden;
  border-radius: 11px 11px 0 0;
}

.client-home-page :is(.sale-img, .rent-img) img {
  transition: transform 0.45s ease;
}

.client-home-page :is(.sale-content, .rent-content) {
  flex: 1;
}

.client-home-page :is(.sale-content, .rent-content) .box-info {
  min-height: 5.8rem;
  margin: 0 !important;
}

.client-home-page :is(.sale-content, .rent-content) .box-info a {
  color: var(--home-ink);
  transition: color 0.2s ease;

  &:hover {
    color: var(--home-primary);
  }
}

.client-home-page :is(.sale-price, .rent-price) {
  flex-wrap: wrap;
  align-items: center;
  margin: 0.3rem 0 0 !important;
  padding: 0 1.8rem !important;
  color: var(--home-primary) !important;
  font-size: 1.65rem !important;
  font-weight: 700;
}

.client-home-page :is(.sale-location, .rent-location) {
  display: flex;
  align-items: flex-start;
  margin: 1rem 0 0 !important;
  padding: 0 1.8rem !important;

  svg {
    color: var(--home-primary);
    flex-shrink: 0;
  }

  a {
    color: var(--home-primary) !important;
    font-weight: 500;
    transition: color 0.2s ease;

    &:hover {
      color: var(--home-accent, #FF9900) !important;
    }
  }
}

.client-home-page :is(.sale-footer, .rent-footer) {
  align-items: center;
  margin: 1.4rem 0 0 !important;
  padding: 1.2rem 1.8rem 1.5rem !important;
  border-top: 1px solid #edf1ef;
}

.client-home-page :is(.client-sale-section, .client-rent-section) :is(.sale-footer, .rent-footer) .btn-like {
  color: var(--home-primary);
  border: 1px solid var(--home-line) !important;
  border-radius: 8px !important;
  background: #fff !important;
  transition: all 0.2s ease;

  &:hover {
    color: var(--home-primary-dark) !important;
    border-color: rgba(0, 60, 71, 0.4) !important;
    background: rgba(0, 60, 71, 0.06) !important;
  }

  &.wishlist {
    color: var(--home-accent) !important;
    border-color: rgba(255, 153, 0, 0.55) !important;
    background: rgba(255, 153, 0, 0.1) !important;
  }
}

.client-home-page :is(.sale-load, .rent-load) {
  min-width: 14rem;
  border: 1px solid var(--home-primary);
  border-radius: 12px;
  background: transparent;
  color: var(--home-primary);
  box-shadow: none;
  font-weight: 700;
  transition: all 0.25s ease;

  &:hover {
    color: #fff;
    background: var(--home-primary);
    box-shadow: 0 4px 14px rgba(0, 60, 71, 0.25);
  }
}

/* KHỐI TRỐNG TIN ĐĂNG */
.home-property-empty {
  grid-column: 1 / -1;
  min-height: 28rem;
  display: grid;
  grid-template-columns: auto minmax(0, 54rem);
  align-items: center;
  justify-content: center;
  gap: 2.8rem;
  padding: clamp(3rem, 6vw, 6rem);
  border: 1px dashed rgba(0, 60, 71, 0.25);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(0, 60, 71, 0.04), rgba(255, 153, 0, 0.04)),
    #fff;
  text-align: left;
}

.home-property-empty__icon {
  width: 9rem;
  height: 9rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--home-primary);
  background: rgba(0, 60, 71, 0.08);
  transform: rotate(-3deg);
}

.home-property-empty__icon svg {
  width: 4.8rem;
  height: 4.8rem;
}

.home-property-empty__eyebrow {
  color: var(--home-accent);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-property-empty h3 {
  margin: 0.7rem 0 0;
  color: var(--home-ink);
  font-size: clamp(2.1rem, 2.5vw, 3rem);
  line-height: 1.25;
}

.home-property-empty p {
  margin: 1rem 0 0;
  color: var(--home-muted);
  font-size: 1.55rem;
  line-height: 1.65;
}

.home-property-empty__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.home-property-empty__actions a {
  min-height: 4.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.8rem;
  border: 1px solid var(--home-primary);
  border-radius: 12px;
  color: #fff;
  background: var(--home-primary);
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;

  &:hover {
    background: var(--home-primary-dark);
    box-shadow: 0 4px 12px rgba(0, 60, 71, 0.25);
  }

  &.is-secondary {
    color: var(--home-primary);
    background: #fff;

    &:hover {
      background: rgba(0, 60, 71, 0.06);
    }
  }
}

/* 3. KHU VỰC BẤT ĐỘNG SẢN (AREA SECTION) */
.client-home-page .client-area-section {
  margin: 0;
  padding-top: clamp(4.8rem, 6vw, 8rem);
  padding-bottom: clamp(4.8rem, 6vw, 8rem);
  background: #fff;
}

.client-home-page .area-card {
  border: 1px solid rgba(0, 60, 71, 0.1);
  border-radius: 12px !important;
  overflow: hidden;
  box-shadow: 0 1rem 2.8rem rgba(0, 60, 71, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;

  &:hover {
    transform: translateY(-4px);
    box-shadow: 0 1.6rem 3.8rem rgba(0, 60, 71, 0.15);
  }
}

/* 4. DỰ ÁN NỔI BẬT (PROJECT SECTION) */
.client-home-page .client-project-section {
  border-top: 1px solid #edf1ef;
  background: var(--home-soft);
}

.client-home-page .project-tabs {
  width: min(100%, 68rem);
  min-height: 4.6rem;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.5rem;
  border: 1px solid var(--home-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 0.6rem 2rem rgba(0, 60, 71, 0.06);
}

.client-home-page .project-tab {
  flex: 1 1 0;
  min-width: 0;
  padding: 1rem 1.5rem !important;
  border-radius: 10px !important;
  border: none !important;
  color: var(--home-ink) !important;
  background: transparent !important;
  font-weight: 600;
  font-size: 1.45rem;
  line-height: 1.25;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;

  &:hover {
    color: var(--home-primary) !important;
    background: rgba(0, 60, 71, 0.05) !important;
  }

  &.active {
    color: #fff !important;
    background: var(--home-primary) !important;
    box-shadow: 0 4px 14px rgba(0, 60, 71, 0.28) !important;
  }
}

.client-home-page .project-card {
  border: 1px solid var(--home-line);
  border-radius: 12px !important;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 0.8rem 2.4rem rgba(0, 60, 71, 0.06) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;

  &:hover {
    border-color: rgba(0, 60, 71, 0.3) !important;
    transform: translateY(-4px) !important;
    box-shadow: 0 1.4rem 3.4rem rgba(0, 60, 71, 0.12) !important;
  }

  .project-thumb {
    position: relative;
    overflow: hidden;
    height: 220px;
    flex-shrink: 0;

    .project-thumb__link {
      display: block;
      width: 100%;
      height: 100%;
    }

    img {
      width: 100% !important;
      height: 100% !important;
      object-fit: cover !important;
      transition: transform 0.35s ease;
    }
  }

  &:hover .project-thumb img {
    transform: scale(1.05);
  }

  .project-badge {
    background: var(--home-accent, #FF9900) !important;
    color: #fff !important;
    border-radius: 8px !important;
    font-weight: 700;
    font-size: 1.2rem;
  }

  .project-body {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    padding: 1.6rem !important;
  }

  .project-body-title {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    color: var(--home-ink);
    font-weight: 700;
    font-size: 1.65rem;
    line-height: 1.35;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    margin-bottom: 0.6rem !important;
  }

  .project-body-location {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    color: var(--home-primary) !important;
    font-size: 1.35rem;
    line-height: 1.4;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    margin-bottom: 1.4rem !important;

    svg {
      color: var(--home-primary);
      flex-shrink: 0;
    }
  }

  .project-body-meta {
    display: none !important;
  }

  .project-footer {
    margin-top: auto !important;
    width: 100% !important;
    padding-top: 0.4rem;

    a {
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      gap: 8px !important;
      width: 100% !important;
      min-height: 40px !important;
      padding: 0.9rem 1.6rem !important;
      border-radius: 8px !important;
      background: var(--home-primary, #003C47) !important;
      color: #ffffff !important;
      font-size: 1.35rem !important;
      font-weight: 700 !important;
      text-decoration: none !important;
      box-shadow: 0 4px 14px rgba(0, 60, 71, 0.22) !important;
      transition: all 0.25s ease !important;

      svg {
        transition: transform 0.2s ease;
      }

      &:hover {
        background: var(--home-accent, #FF9900) !important;
        color: #ffffff !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 18px rgba(255, 153, 0, 0.35) !important;

        svg {
          transform: translateX(3px);
        }
      }
    }
  }
}

.client-home-page .client-project-section .project-content-wrapper .project-pane .project-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* 5. ĐỐI TÁC CHIẾN LƯỢC (PARTNER SECTION) */
.client-home-page .client-partner-section {
  background: #fff;
}

.client-home-page .partner-item {
  border: 1px solid var(--home-line);
  border-radius: 12px !important;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 60, 71, 0.04) !important;
  transition: all 0.25s ease;

  &:hover {
    border-color: rgba(0, 60, 71, 0.3) !important;
    box-shadow: 0 8px 24px rgba(0, 60, 71, 0.1) !important;
    transform: translateY(-2px);
  }
}

/* 6. TIỆN ÍCH & CÔNG CỤ PHONG THỦY (UTILITY SECTION) - ĐỒNG BỘ MÀU THƯƠNG HIỆU */
.client-home-page .client-utility-section {
  padding: 0 0 clamp(4.8rem, 6vw, 8rem);
  background: #fff;

  .utility-wrap {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }

  .utility-card {
    min-height: 10rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.2rem 1.6rem;
    border: 1px solid var(--home-line) !important;
    border-radius: 12px !important;
    background: #fff;
    box-shadow: 0 6px 20px rgba(0, 60, 71, 0.06) !important;
    text-decoration: none;
    transition: all 0.25s ease;

    &:hover {
      transform: translateY(-3px);
      border-color: rgba(0, 60, 71, 0.35) !important;
      box-shadow: 0 12px 30px rgba(0, 60, 71, 0.12) !important;

      .icon {
        transform: scale(1.08);
      }
    }

    .icon {
      width: 5.4rem;
      height: 5.4rem;
      display: grid;
      place-items: center;
      border-radius: 12px;
      font-size: 2.4rem;
      color: #fff;
      transition: transform 0.25s ease;
      box-shadow: 0 4px 14px rgba(0, 60, 71, 0.18);

      /* Đồng bộ toàn bộ icon theo bảng màu chuẩn 60-30-10 */
      &.bg-teal {
        background: linear-gradient(135deg, #003C47 0%, #00272E 100%) !important;
      }

      &.bg-orange {
        background: linear-gradient(135deg, #FF9900 0%, #E68A00 100%) !important;
      }

      &.bg-purple {
        background: linear-gradient(135deg, #004B59 0%, #003C47 100%) !important;
      }

      &.bg-yellow {
        background: linear-gradient(135deg, #FFA726 0%, #FF9900 100%) !important;
      }
    }

    .text {
      margin-top: 1.2rem;
      color: var(--home-ink);
      font-size: 1.55rem;
      font-weight: 700;
      text-align: center;
      transition: color 0.2s ease;
    }

    &:hover .text {
      color: var(--home-primary);
    }
  }
}

/* 7. TIN TỨC VÀ CẨM NANG (BLOG SECTION) */
.client-home-page .client-blog-section {
  border-top: 1px solid #edf1ef;
  background: var(--home-soft);

  .blog-heading-title {
    color: var(--home-ink);
    font-size: clamp(2.2rem, 2.5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.03em;
    text-wrap: balance;
    margin: 0 0 0.8rem;
  }

  .blog-heading-subtitle {
    color: var(--home-muted);
    font-size: clamp(1.4rem, 1.4vw, 1.6rem);
    line-height: 1.6;
    margin: 0;
  }

  .tags {
    display: flex;
    justify-content: flex-end;

    .tag-item {
      .type-tab-php {
        display: inline-flex;
        align-items: center;
        padding: 0.8rem 1.6rem;
        border-radius: 12px;
        border: 1px solid var(--home-line);
        background: #fff;
        color: var(--home-ink);
        font-size: 1.4rem;
        font-weight: 600;
        text-decoration: none;
        transition: all 0.2s ease;
        box-shadow: 0 2px 8px rgba(0, 60, 71, 0.04);

        &:hover,
        &.active {
          background: var(--home-primary);
          border-color: var(--home-primary);
          color: #fff;
          box-shadow: 0 4px 14px rgba(0, 60, 71, 0.25);
        }
      }
    }
  }

  .blog-wrapper {
    margin-top: 1.8rem;
  }

  .blog-card {
    position: relative;
    border-radius: 12px !important;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--home-line);
    box-shadow: 0 8px 24px rgba(0, 60, 71, 0.06);
    transition: all 0.3s ease;

    &:hover {
      transform: translateY(-3px);
      box-shadow: 0 14px 32px rgba(0, 60, 71, 0.12);
      border-color: rgba(0, 60, 71, 0.3);

      img {
        transform: scale(1.04);
      }
    }

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.4s ease;
    }

    .blog-img-box {
      position: relative;
      overflow: hidden;
    }

    .blog-card-overlay {
      position: absolute;
      inset: 0;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      padding: clamp(1.6rem, 2.5vw, 2.4rem);
      background: linear-gradient(180deg, transparent 35%, rgba(0, 39, 46, 0.9) 100%);
      color: #fff;

      .title {
        color: #fff;
        font-size: clamp(1.6rem, 1.8vw, 2.2rem);
        font-weight: 700;
        line-height: 1.35;
        margin-bottom: 0.6rem;
      }

      .excerpt {
        color: rgba(255, 255, 255, 0.85);
        font-size: 1.4rem;
        line-height: 1.5;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin: 0;
      }
    }

    &.blog-featured .blog-img-box {
      height: clamp(28rem, 30vw, 38rem);
    }

    &.blog-sub {
      margin-top: 1.6rem;

      .blog-img-box {
        height: clamp(18rem, 18vw, 22rem);
      }

      .title {
        font-size: 1.55rem;
      }
    }
  }

  .blog-sidebar {
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--home-line);
    padding: 1.4rem;
    box-shadow: 0 8px 24px rgba(0, 60, 71, 0.06);
    height: 100%;
    display: flex;
    flex-direction: column;

    .blog-list {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      height: 100%;
      gap: 1rem;
    }

    .blog-list-item {
      padding-bottom: 0.9rem;
      border-bottom: 1px solid #edf1ef;
      flex: 1;
      display: flex;
      align-items: center;

      &:last-child {
        padding-bottom: 0;
        border-bottom: none;
      }

      .blog-list-link {
        display: flex;
        gap: 1.1rem;
        align-items: center;
        text-decoration: none;
        color: inherit;
        width: 100%;

        &:hover {
          .title {
            color: var(--home-primary);
          }

          img {
            transform: scale(1.04);
          }
        }
      }

      img {
        width: 9.2rem;
        height: 6.4rem;
        border-radius: 8px;
        object-fit: cover;
        flex-shrink: 0;
        transition: transform 0.3s ease;
      }

      .blog-list-content {
        flex: 1;
        min-width: 0;

        .title {
          font-size: 1.35rem;
          font-weight: 700;
          line-height: 1.32;
          color: var(--home-ink);
          margin-bottom: 0.25rem;
          display: -webkit-box;
          -webkit-line-clamp: 2;
          -webkit-box-orient: vertical;
          overflow: hidden;
          transition: color 0.2s ease;
        }

        .excerpt {
          font-size: 1.25rem;
          color: var(--home-muted);
          line-height: 1.38;
          margin-bottom: 0.25rem;
          display: -webkit-box;
          -webkit-line-clamp: 1;
          -webkit-box-orient: vertical;
          overflow: hidden;
        }

        .date {
          font-size: 1.15rem;
          color: var(--home-accent);
          font-weight: 600;
        }
      }
    }
  }
}

/* 8. RESPONSIVE THIẾT BỊ DI ĐỘNG */
@media (max-width: 767.98px) {
  .client-home-page :is(.client-sale-section, .client-rent-section, .client-area-section, .client-intro-section, .client-project-section, .client-partner-section, .client-utility-section, .client-blog-section) {
    padding-left: 1.4rem;
    padding-right: 1.4rem;
  }

  .client-home-page :is(.sale-title, .rent-title, .area-section-title, .project-heading-title, .partner-heading-title, .blog-heading-title) {
    font-size: clamp(2.2rem, 6.5vw, 2.8rem);
    letter-spacing: -0.025em;
  }

  .client-home-page :is(.sale-subtitle, .rent-subtitle, .area-section-desc, .project-heading-subtitle, .partner-heading-subtitle, .blog-heading-subtitle) {
    margin-top: 0.8rem;
    margin-bottom: 2.2rem;
    font-size: 1.4rem;
    line-height: 1.55;
  }

  .client-home-page :is(.sale-grid, .rent-grid) {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .client-home-page :is(.sale-item, .rent-item):hover {
    transform: none !important;
  }

  .client-home-page :is(.sale-img, .rent-img) {
    height: 20rem !important;
  }

  .client-home-page :is(.sale-content, .rent-content) .box-info {
    min-height: auto;
    font-size: 1.65rem !important;
  }

  .home-property-empty {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 1.8rem;
    padding: 2.4rem 2rem;
    border-radius: 12px;
    text-align: center;
  }

  .home-property-empty__icon {
    width: 7.6rem;
    height: 7.6rem;
    margin: 0 auto;
    border-radius: 12px;
  }

  .home-property-empty__icon svg {
    width: 4.2rem;
    height: 4.2rem;
  }

  .home-property-empty__actions {
    justify-content: center;
  }

  .home-property-empty__actions a {
    flex: 1 1 14rem;
  }

  .client-home-page .project-tabs {
    width: max-content !important;
    max-width: 100%;
    height: auto !important;
    justify-content: flex-start;
    gap: 0.4rem !important;
    padding: 0.5rem !important;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .client-home-page .project-tabs::-webkit-scrollbar {
    display: none;
  }

  .client-home-page .project-tab {
    flex: 0 0 auto;
    min-height: 3.4rem;
    padding: 0.5rem 1.6rem !important;
    border: 0 !important;
    color: var(--home-primary-dark) !important;
    background: transparent !important;
    font-size: 1.35rem !important;
    line-height: 1.2;
    white-space: nowrap;
    scroll-snap-align: start;
    box-shadow: none !important;
  }

  .client-home-page .project-tab.active {
    color: #fff !important;
    background: var(--home-primary) !important;
    box-shadow: 0 0.6rem 1.6rem rgba(0, 60, 71, 0.22) !important;
  }

  .client-home-page .client-blog-section .tags {
    justify-content: flex-start;
    margin-top: 1rem;
  }
}

@media (max-width: 480px) {
  .client-home-page :is(.client-sale-section, .client-rent-section, .client-area-section, .client-project-section, .client-partner-section, .client-blog-section) {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .client-home-page :is(.sale-img, .rent-img) {
    height: 18.5rem !important;
  }

  .client-home-page .client-area-section .area-section-grid {
    gap: 1.4rem;
  }

  .client-home-page .client-area-section .area-card,
  .client-home-page .client-area-section .area-card.featured {
    height: 19rem;
    border-radius: 12px;
  }

  .client-home-page .client-utility-section .utility-wrap {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .client-home-page .client-project-section .project-content-wrapper .project-pane .project-grid {
    grid-template-columns: 1fr;
  }

  .client-home-page .client-utility-section .utility-card {
    min-height: 7.6rem;
    flex-direction: row;
    justify-content: flex-start;
    padding: 1.2rem 1.6rem;
    text-align: left;
  }

  .client-home-page .client-utility-section .utility-card .text {
    margin-top: 0;
    margin-left: 1.4rem;
    font-size: 1.45rem;
    text-align: left;
  }
}

@media (max-width: 575.98px) {
  .client-home-page .client-project-section .project-content-wrapper .project-pane .project-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 576px) and (max-width: 1023.98px) {
  .client-home-page .client-area-section .area-section-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .client-home-page .client-area-section .area-card:last-child {
    order: 1;
  }

  .client-home-page .client-area-section .area-card.featured {
    order: 2;
    grid-column: span 2;
  }

  .client-home-page .client-project-section .project-content-wrapper .project-pane .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .client-home-page .client-utility-section .utility-wrap {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .client-home-page *,
  .client-home-page *::before,
  .client-home-page *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Home Segment Discovery Section (Góc nhìn theo phân khúc)
   ========================================================================== */
.client-home-page .home-segment-section {
  padding: 60px 0 80px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8f8 100%);

  .home-segment-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
  }

  .bds-area-heading {
    max-width: 760px;
    margin: 0 auto 36px;
    text-align: center;
  }

  .bds-area-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #f1913d;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;

    &::before {
      content: "";
      display: inline-block;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: currentColor;
    }
  }

  .titlebdsdn {
    display: block;
    margin: 0;
    color: #003c47;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
  }

  .themotabds {
    max-width: 680px;
    margin: 14px auto 0;
    color: #5a7378;
    font-size: 15px;
    line-height: 1.65;
  }

  .bds-container {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }

  .bds-col {
    position: relative;
    padding: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 60, 71, 0.08);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 60, 71, 0.05);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;

    &:hover {
      border-color: rgba(241, 145, 61, 0.4);
      box-shadow: 0 14px 34px rgba(0, 60, 71, 0.1);
      transform: translateY(-3px);
    }
  }

  .bds-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(0, 60, 71, 0.08);
  }

  .bds-title {
    padding-right: 8px;
    color: #003c47;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
  }

  .bds-toggle {
    display: none;
    visibility: hidden;
    width: 32px;
    height: 32px;
    padding: 0;
    color: #003c47;
    font-size: 18px;
    border: 1px solid rgba(0, 60, 71, 0.12);
    border-radius: 8px;
    background: rgba(0, 60, 71, 0.04);

    span {
      display: block;
      line-height: 1;
      transition: transform 0.25s ease;
    }
  }

  .bds-list {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;

    li {
      margin: 0;
      padding: 0;
      list-style: none;
    }
  }

  .bds-item {
    display: block;
    padding: 7px 0;
    color: #4a6368;
    font-size: 13.5px;
    line-height: 1.5;
    text-decoration: none;
    transition: color 0.18s ease, transform 0.18s ease;

    &:hover {
      color: #f1913d;
      transform: translateX(4px);
    }
  }
}

@media (max-width: 991.98px) {
  .client-home-page .home-segment-section {
    padding: 40px 0 60px;

    .bds-container {
      grid-template-columns: 1fr;
      gap: 12px;
    }

    .bds-col {
      padding: 14px 16px;
      cursor: pointer;

      .bds-toggle {
        display: inline-flex;
        visibility: visible;
        align-items: center;
        justify-content: center;
      }

      .bds-list {
        display: none;
        margin-top: 12px;
        padding-top: 8px;
        border-top: 1px dashed rgba(0, 60, 71, 0.08);
      }

      &.active {
        .bds-list {
          display: block;
        }

        .bds-toggle span {
          transform: rotate(45deg);
        }
      }
    }
  }
}

