.client-blog-detail {
  background: linear-gradient(180deg, #f7f9fb 0%, #ffffff 100%);
  border-bottom: 1px solid #e5e7eb;
  border-left: 4px solid #e5b85a;

  & .client-blog-header {
    max-width: 1320px;
    margin: 8rem auto 4rem;
    padding-top: 4rem;
    .client-blog-breadcrumb {
      font-size: 14px;
      color: #6b7280;
      margin-bottom: 14px;
      display: flex;
      white-space: nowrap;
      text-overflow: ellipsis;
      overflow: hidden;
      & a {
        text-decoration: none;
      }
      & span {
        margin: 0 6px;
      }
    }
    & .client-blog-header-title {
      font-size: 30px;
      line-height: 1.35;
      font-weight: 700;
      color: #003c47;
      margin-bottom: 12px;
      @media (max-width: 992px) {
        font-size: 22px;
      }
    }
    & .client-blog-header-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 16px;
      font-size: 14px;
      color: #6b7280;
      margin-bottom: 16px;
    }
    & .client-blog-header-sapo {
      font-size: 17px;
      line-height: 1.65;
      color: #374151;
      max-width: 1300px;
    }
  }
  & .client-blog-wrap {
    max-width: 1320px;
    margin: 30px auto 0;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 3fr 1.2fr;
    gap: 32px;

    @media (max-width: 992px) {
      grid-template-columns: 1fr;
    }
    & .client-blog-wrap-left {
      font-size: 16px;
      line-height: 1.75;

      & p {
        margin-bottom: 6px;
        color: #222;
        line-height: 1.5;
      }
      & h2 {
        font-size: 17px;
        margin: 4px 0 4px;
        color: #003c47;
        font-weight: bold;
      }
      & h3 {
        font-size: 17px;
        margin: 4px 0 4px;
        color: #222;
        font-weight: bold;
      }

      & .wrap-left-image {
        margin-bottom: 20px;
        text-align: center;
        & img {
          height: auto;
          border-radius: 6px;
        }
        & figcaption {
          margin-top: 8px;
          font-size: 14px;
          color: #6b7280;
          text-align: center;
          font-style: italic;
        }
      }
      & .wrap-left-body {
        & p {
          font-size: 17px;
          line-height: 1.75;
          margin-bottom: 16px;
          color: #333;
        }
      }
      & .wrap-left-author-box {
        margin-top: 40px;
        padding: 18px 20px;
        background: #f8f9fb;
        border-left: 4px solid #003c47;
        border-radius: 4px;
        & p {
          margin: 0;
          font-size: 17px;
          color: #555;
          line-height: 1.6;
        }
        & strong {
          color: #003c47;
        }
      }
    }
    & .client-blog-wrap-right {
      flex: 1 1 0;
      min-width: 250px;
      @media (min-width: 992px) {
        position: sticky;
        top: 8rem;
        align-self: flex-start;
      }
      @media (max-width: 991px) {
        width: 100%;
        flex: none;
        position: relative;
        margin-top: 20px;
      }

      & .wrap-right-ads-banner {
        border-radius: 12px;
        overflow: hidden;
        position: relative;
        height: 30rem;
        margin-bottom: 16px;
        & img {
          width: 100%;
          height: 100%;
          object-fit: cover;
          display: block;
        }
        & .wrap-right-ads-overlay {
          position: absolute;
          inset: 0;
          background: linear-gradient(to top, rgba(0, 0, 0, 0.68) 0%, rgba(0, 0, 0, 0.3) 45%, transparent 75%);
        }
        & .wrap-right-ads-content {
          position: absolute;
          bottom: 0;
          left: 0;
          right: 0;
          padding: 14px 16px;
          & .wrap-right-ads-badge {
            display: inline-block;
            background: rgba(255, 200, 60, 0.92);
            color: #5a3a00;
            font-size: 1.5rem;
            padding: 0.5rem 1rem;
            border-radius: 12px;
            margin-bottom: 6px;
            font-weight: 600;
          }
          & .wrap-right-ads-title {
            color: #fff;
            font-size: 2rem;
            font-weight: 600;
            margin: 0;
            line-height: 1.35;
            text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
          }
          & .wrap-right-ads-sub {
            color: rgba(255, 255, 255, 0.82);
            font-size: 1rem;
            margin: 3px 0 0;
            text-decoration: underline;
            cursor: pointer;
          }
        }
      }
      & .wrap-right-box {
        background: #f9fafb;
        border: 1px solid #e5e7eb;
        border-radius: 6px;
        padding: 16px;
        margin-bottom: 20px;
        & h3 {
          font-size: 17px;
          margin-bottom: 12px;
          color: #0fb9b1;
          font-weight: bold;
        }
        & ul {
          list-style: none;
          & li {
            margin-top: 10px;
          }
        }
        & a {
          color: #003c47;
          text-decoration: none;
          font-size: 15px;
          &:hover {
            color: #0fb9b1;
            text-decoration: none;
            font-size: 15px;
          }
        }
        & .wrap-right-box-title {
          font-size: 1.75rem;
        }
        & .wrap-right-box-list {
          list-style: none;
          padding: 0;
          margin: 0;
          & .right-box-item {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            padding: 9px 0;
            border-bottom: 1px solid #f0f0f0;
            &:last-child {
              border-bottom: none;
              padding-bottom: 0;
            }
            & .right-box-item-num {
              min-width: 22px;
              height: 22px;
              border-radius: 4px;
              background: #f1f3f5;
              display: flex;
              align-items: center;
              justify-content: center;
              font-size: 11px;
              font-weight: 600;
              color: #888;
              margin-top: 1px;
              flex-shrink: 0;
              &.top {
                background: #e6f1fb;
                color: #185fa5;
              }
            }
          }
        }
      }
    }
  }
  & .client-blog-related {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-start;
    margin: 0 auto;
    max-width: 1300px;
    padding: 0 15px;
    box-sizing: border-box;
    margin-top: 30px;

    @media (max-width: 991px) {
      flex-direction: column;
    }
    & .box-blog-related-left {
      flex: 2 1 0;
      min-width: 300px;

      @media (max-width: 991px) {
        width: 100%;
        flex: none;
      }
      & .blog-related-left-title {
        font-size: 20px;
        font-weight: bold;
        margin-top: 8px;
        color: #003c47;
        border-bottom: 2px solid #e5b85a;
        padding-bottom: 6px;
        font-size: 18px;
        margin-bottom: 25px;
        font-weight: 600;
      }
      & .swiper-wrapper-relative-blog {
        & .blog-related-item {
          display: flex;
          gap: 15px;
          margin-bottom: 20px;
          flex-wrap: wrap;

          @media (max-width: 991px) {
            flex-direction: row;
          }

          & .blog-related-img {
            flex: 3 0 30%;
            min-width: 100px;
            & img {
              width: 26rem;
              height: 13rem;
              object-fit: cover;
              display: block;
              border-radius: 10px;
            }
            @media (max-width: 991px) {
              flex: 3 0 30%;
            }
          }
          & .blog-related-content {
            flex: 7 0 65%;
            @media (max-width: 991px) {
              flex: 7 0 65%;
            }
            & .blog-related-title {
              display: block;
              font-weight: bold;
              margin-bottom: 2px;
              text-decoration: none;
              color: #003c47;
              font-size: 16px;
              line-height: 21px;
              display: -webkit-box;
              -webkit-box-orient: vertical;
              -webkit-line-clamp: 2;
              overflow: hidden;

              @media (max-width: 991px) {
                display: block;
                font-weight: bold;
                margin-bottom: 2px;
                text-decoration: none;
                color: #003c47;
                font-size: 16px;
                line-height: 21px;
              }
              &:hover {
                font-weight: bold;
                margin-bottom: 2px;
                text-decoration: none;
                color: #00c2c7;
                font-size: 16px;
                line-height: 21px;
              }
            }
            & .blog-related-description {
              font-size: 15px;
              line-height: 1.6;
              color: #333;
              display: block;
              @media (max-width: 991px) {
                font-size: 14px;
                line-height: 1.3;
                color: #333;
                display: none;
              }
            }
          }
        }
      }
    }
    & .box-blog-related-right {
      flex: 1 1 0;
      min-width: 250px;
      @media (min-width: 992px) {
        position: sticky;
        top: 8rem;
        align-self: flex-start;
      }
      @media (max-width: 991px) {
        width: 100%;
        flex: none;
        position: relative;
        margin-top: 20px;
      }
    }
  }
}

/* ==============================================================
   THIẾT KẾ MỚI: BẤT ĐỘNG SẢN VÀ DỰ ÁN NỔI BẬT (NATIVE NESTING)
   ============================================================== */
.client-detail-re-section,
.client-detail-project-section {
  max-width: 1320px;
  margin: 60px auto;
  padding: 0 20px;

  /* Header Chung */
  .section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
    gap: 20px;

    @media (max-width: 768px) {
      flex-direction: column;
      align-items: flex-start;
    }

    .header-content {
      flex: 1;

      .sub-title {
        display: inline-block;
        padding: 6px 16px;
        background: rgba(0, 194, 199, 0.1);
        color: var(--color-primary);
        border-radius: 20px;
        font-size: 1.3rem;
        font-weight: 700;
        text-transform: uppercase;
        margin-bottom: 12px;
      }
      .main-title {
        font-size: 3.2rem;
        font-weight: 700;
        color: var(--color-primary);
        margin-bottom: 12px;
        line-height: 1.3;
        @media (max-width: 768px) {
          font-size: 2.4rem;
        }
      }
      .desc {
        font-size: 1.6rem;
        color: var(--color-text-muted);
        max-width: 750px;
        line-height: 1.6;
      }
    }

    .header-nav {
      display: flex;
      gap: 12px;

      .nav-btn {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        border: 1px solid var(--color-border);
        background: #fff;
        color: var(--color-primary);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: 0.3s ease;

        &:hover {
          background: var(--color-primary);
          color: #fff;
          border-color: var(--color-primary);
          transform: translateY(-2px);
        }
      }
    }
  }

  /* Slider Card: Bất Động Sản Nổi Bật */
  .detail-re-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 35rem;

    a {
      text-decoration: none;
      color: inherit;
      display: flex;
      flex-direction: column;
      height: 100%;
    }

    &:hover {
      transform: translateY(-6px);
      box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
      border-color: var(--color-secondary);
      .re-image img {
        transform: scale(1.06);
      }
      .re-content .re-title {
        color: var(--color-secondary);
      }
    }

    .re-image {
      position: relative;
      height: 220px;
      overflow: hidden;
      flex-shrink: 0;

      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: 0.5s ease;
      }
      .re-badge {
        position: absolute;
        top: 12px;
        left: 12px;
        background: #e03c31; /* Đỏ thu hút */
        color: #fff;
        padding: 4px 12px;
        border-radius: 6px;
        font-size: 1.2rem;
        font-weight: 700;
        text-transform: uppercase;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
      }
    }

    .re-content {
      padding: 18px 20px;
      flex: 1;
      display: flex;
      flex-direction: column;

      .re-title {
        font-size: 1.7rem;
        font-weight: 600;
        color: var(--color-primary);
        line-height: 1.4;
        margin-bottom: 10px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        transition: 0.2s;
      }

      .re-location {
        display: flex;
        align-items: flex-start;
        gap: 6px;
        font-size: 1.4rem;
        color: var(--color-text-muted);
        margin-bottom: 12px;
        svg {
          flex-shrink: 0;
          color: var(--color-primary);
        }
      }

      .re-meta {
        display: flex;
        align-items: center;
        gap: 12px;
        padding-top: 12px;
        border-top: 1px dashed var(--color-border);
        margin-top: auto;

        .re-price {
          font-size: 1.8rem;
          font-weight: 700;
          color: #e03c31;
        }
        .re-area {
          font-size: 1.5rem;
          font-weight: 600;
          color: var(--color-text-main);
          position: relative;
          padding-left: 12px;
          &::before {
            content: "•";
            position: absolute;
            left: 0;
            color: var(--color-text-muted);
          }
        }
      }
    }

    .re-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 12px 20px;
      background: var(--color-surface-hover, #f8f9fa);
      border-top: 1px solid var(--color-border);

      .re-time {
        font-size: 1.3rem;
        color: var(--color-text-muted);
      }
      .btn-like {
        background: #fff;
        border: 1px solid var(--color-border);
        width: 36px;
        height: 36px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: 0.2s;
        color: var(--color-text-muted);

        &:hover {
          background: #ffecec;
          border-color: #ff4d4f;
          color: #ff4d4f;
        }
      }
    }
  }

  .detail-project-card {
    position: relative;
    height: 360px;
    border-radius: 16px;
    overflow: hidden;
    display: block;
    text-decoration: none;
    width: 35rem;

    a {
      display: block;
      height: 100%;
      width: 100%;
    }

    .project-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.6s ease;
    }

    .project-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.25) 60%, transparent 100%);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      padding: 24px;
      transition: 0.3s ease;

      .project-badge {
        align-self: flex-start;
        background: var(--color-secondary);
        color: #fff;
        font-size: 1.3rem;
        font-weight: 700;
        padding: 6px 14px;
        border-radius: 8px;
        text-transform: uppercase;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
      }

      .project-info {
        .project-title {
          color: #fff;
          font-size: 2.2rem;
          font-weight: 700;
          margin-bottom: 10px;
          line-height: 1.35;
          text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
          display: -webkit-box;
          -webkit-line-clamp: 2;
          -webkit-box-orient: vertical;
          overflow: hidden;
          transition: 0.2s;
        }
        .project-location {
          display: flex;
          align-items: flex-start;
          gap: 6px;
          color: #f1f1f1;
          font-size: 1.5rem;
          svg {
            flex-shrink: 0;
            color: var(--color-secondary);
          }
        }
      }
    }

    &:hover {
      .project-img {
        transform: scale(1.08);
      }
      .project-overlay {
        background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
      }
      .project-info .project-title {
        color: var(--color-secondary);
      }
    }
  }
}
