/*
 * Chuyên mục Luật xây dựng 135 (/luat-xay-dung-135/) — Construction Law Knowledge
 * Hub. Chỉ nạp khi is_category( 'luat-xay-dung-135' ) && ! is_search() (functions.php).
 * Mọi selector scope theo .vdt-l135c-* (root .vdt-l135-hub) hoặc
 * body.category-luat-xay-dung-135.
 *
 * Khung sao từ Hero Quản lý dự án (category-luat-xay-dung-135.css, 01/12/2026);
 * nhận diện riêng: navy/xanh chủ đạo, vàng đồng (màu dấu văn bản) cho vạch kicker và
 * dấu chấm chủ đề. Ảnh nền ở wp-content/uploads/anh-nen/, URL do PHP truyền qua
 * --vdt-l135c-bg-desktop / --vdt-l135c-bg-mobile; thiếu biến thì chỉ còn gradient.
 */

.vdt-l135c-hero {
  --vdt-l135c-navy: #0b1f3a;
  --vdt-l135c-blue: #1e5bff;
  --vdt-l135c-cyan: #00b8d9;
  --vdt-l135c-teal: #a86b12;
  --vdt-l135c-emerald: #e0a526;
  --vdt-l135c-amber: #b7791f;
  --vdt-l135c-ice: #f2f7ff;
  --vdt-l135c-muted: #475467;
  --vdt-l135c-base: #eef5fd;

  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 16px 0 18px;
  background: linear-gradient(160deg, #f7fbff 0%, var(--vdt-l135c-base) 55%, #e4eefb 100%);
  border-bottom: 1px solid rgba(214, 228, 244, .9);
}

/* Ảnh minh họa desktop (bàn hồ sơ, hợp đồng, bản vẽ — ảnh có sẵn của site, cắt 16:9):
   đặt lùi phải hơn Hero QLDA (~680px) để laptop không nằm dưới đoạn mô tả; hai mép ảnh làm mờ bằng mask. */
.vdt-l135c-hero::before {
  --vdt-l135c-img-w: clamp(1000px, 70vw, 1280px);
  content: "";
  position: absolute;
  z-index: -2;
  top: 50%;
  left: calc(max(32px, 50vw - 738px) + 680px - .42 * var(--vdt-l135c-img-w));
  width: var(--vdt-l135c-img-w);
  aspect-ratio: 16 / 9;
  transform: translateY(-47%);
  background: var(--vdt-l135c-bg-desktop, none) center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, transparent 26%, #000 40%, #000 88%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, transparent 26%, #000 40%, #000 88%, transparent 100%);
  pointer-events: none;
}

/* Lớp phủ sáng phía cột chữ. */
.vdt-l135c-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(247, 251, 255, .95) 0%, rgba(247, 251, 255, .8) 34%, rgba(247, 251, 255, 0) 48%);
  pointer-events: none;
}

.vdt-l135c-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 640px) minmax(360px, 420px);
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

/* ---------- Cột nội dung ---------- */

.vdt-l135c-hero .vdt-l135c-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--vdt-l135c-blue);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.vdt-l135c-hero .vdt-l135c-hero__kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--vdt-l135c-teal), var(--vdt-l135c-emerald));
}

.vdt-l135c-hero .vdt-l135c-hero__title {
  margin: 0 0 14px;
  color: var(--vdt-l135c-navy);
  font-size: clamp(2.25rem, 2.9vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -.02em;
}

.vdt-l135c-hero .vdt-l135c-hero__desc {
  max-width: 540px;
  margin: 0;
  color: var(--vdt-l135c-muted);
  font-size: 16.5px;
  line-height: 1.65;
  text-wrap: pretty;
}

.vdt-l135c-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.vdt-l135c-hero__actions .vdt-btn {
  min-height: 48px;
  box-shadow: none;
}

.vdt-l135c-hero__actions .vdt-btn--primary {
  box-shadow: 0 10px 24px rgba(30, 91, 255, .20);
}

.vdt-l135c-hero__actions .vdt-btn:hover {
  transform: translateY(-1px);
}

.vdt-l135c-hero .vdt-l135c-hero__consult {
  color: var(--vdt-l135c-blue);
  border-color: rgba(30, 91, 255, .35);
  background: rgba(255, 255, 255, .92);
}

.vdt-l135c-hero .vdt-l135c-hero__consult:hover {
  border-color: var(--vdt-l135c-blue);
  background: #fff;
}

.vdt-l135c-hero__consult svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vdt-l135c-hero .vdt-l135c-hero__topics {
  margin: 18px 0 0;
  color: #5b6b7f;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.vdt-l135c-hero__topics span {
  margin: 0 6px;
  color: var(--vdt-l135c-amber);
}

.vdt-l135c-hero__pills ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.vdt-l135c-hero .vdt-l135c-hero__pills li {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.3;
}

.vdt-l135c-hero__pills a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(190, 208, 232, .95);
  border-radius: 999px;
  color: var(--vdt-l135c-navy);
  background: rgba(255, 255, 255, .86);
  font-weight: 600;
  text-decoration: none;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.vdt-l135c-hero__pills a:hover,
.vdt-l135c-hero__pills a:focus-visible {
  color: var(--vdt-l135c-blue);
  border-color: var(--vdt-l135c-blue);
  background: var(--vdt-l135c-ice);
}

.vdt-l135c-hero__actions .vdt-btn:focus-visible,
.vdt-l135c-hero__pills a:focus-visible,
.vdt-l135c-quick__link:focus-visible,
.vdt-l135c-quick__footer:focus-visible {
  outline: 3px solid rgba(30, 91, 255, .55);
  outline-offset: 2px;
}

/* ---------- Card Truy cập nhanh ---------- */

.vdt-l135c-quick {
  padding: 14px 14px 4px;
  border: 1px solid rgba(196, 213, 236, .9);
  border-radius: 24px;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 18px 44px rgba(11, 31, 58, .10);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: vdt-l135c-rise .45s ease-out both;
}

.vdt-l135c-quick__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 6px 8px;
  border-bottom: 1px solid #e8eef6;
}

.vdt-l135c-quick__badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--vdt-l135c-blue), var(--vdt-l135c-cyan));
}

.vdt-l135c-quick__badge svg,
.vdt-l135c-quick__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vdt-l135c-quick .vdt-l135c-quick__title {
  margin: 0;
  color: var(--vdt-l135c-navy);
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: 0;
}

.vdt-l135c-quick .vdt-l135c-quick__sub {
  margin: 1px 0 0;
  color: #667085;
  font-size: 12.5px;
  line-height: 1.45;
}

.vdt-l135c-quick__list {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.vdt-l135c-quick .vdt-l135c-quick__list li {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.35;
}

.vdt-l135c-quick__list li + li {
  border-top: 1px solid #eef2f7;
}

.vdt-l135c-quick__link {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 3px 8px;
  border-radius: 14px;
  color: var(--vdt-l135c-navy);
  font-weight: 600;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}

.vdt-l135c-quick__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: var(--vdt-l135c-blue);
  background: var(--vdt-l135c-ice);
  transition: background .2s ease;
}

.vdt-l135c-quick__chevron {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #98a2b3;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: rotate(-90deg);
  transition: stroke .2s ease, transform .2s ease;
}

.vdt-l135c-quick__link:hover,
.vdt-l135c-quick__link:focus-visible {
  color: var(--vdt-l135c-blue);
  background: #f2f7ff;
}

.vdt-l135c-quick__link:hover .vdt-l135c-quick__icon {
  background: rgba(30, 91, 255, .13);
}

.vdt-l135c-quick__link:hover .vdt-l135c-quick__chevron,
.vdt-l135c-quick__link:focus-visible .vdt-l135c-quick__chevron {
  stroke: var(--vdt-l135c-blue);
  transform: rotate(-90deg) translateY(2px);
}

/* Link tư vấn hồ sơ tách riêng ở chân card (theo mockup). */
.vdt-l135c-quick__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  margin: 6px 0 6px;
  padding: 6px 12px;
  border: 1px solid rgba(30, 91, 255, .14);
  border-radius: 14px;
  color: var(--vdt-l135c-blue);
  background: var(--vdt-l135c-ice);
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease;
}

.vdt-l135c-quick__footer svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s ease;
}

.vdt-l135c-quick__footer:hover,
.vdt-l135c-quick__footer:focus-visible {
  border-color: rgba(30, 91, 255, .35);
  background: #e6efff;
}

.vdt-l135c-quick__footer:hover .vdt-l135c-quick__footer-arrow {
  transform: translateX(2px);
}

/* ---------- Dải liên kết nâng cao dưới Hero ---------- */

.vdt-l135c-note-wrap {
  margin-top: 16px;
}

body.vdt-page .vdt-l135c-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0;
  padding: 10px 16px;
  border: 1px solid #dbe6f5;
  border-radius: 12px;
  color: #475467;
  background: #f5f9ff;
  font-size: 13.5px;
  line-height: 1.55;
}

.vdt-l135c-note strong {
  color: #0b1f3a;
  font-weight: 700;
}

.vdt-l135c-note a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: #1e5bff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.vdt-l135c-note a:focus-visible {
  outline: 3px solid rgba(30, 91, 255, .55);
  outline-offset: 2px;
}

.vdt-l135c-note svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #0e9f8a;
  stroke-width: 2;
  stroke-linecap: round;
}

@keyframes vdt-l135c-rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Danh sách bài viết bên dưới ---------- */

body.category-luat-xay-dung-135 .vdt-blog-archive {
  padding-top: 32px;
}

body.category-luat-xay-dung-135 #danh-sach-bai-viet {
  scroll-margin-top: 112px;
}

/* ---------- Tablet 768–1199: nội dung trên, card dưới ---------- */

@media (max-width: 1199px) {
  .vdt-l135c-hero::before,
  .vdt-l135c-hero::after {
    display: none;
  }

  .vdt-l135c-hero {
    padding: 0 0 32px;
    background: linear-gradient(160deg, #f7fbff 0%, var(--vdt-l135c-base) 55%, #e4eefb 100%);
  }

  .vdt-l135c-hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  /* Ảnh ngang cao bằng khối chữ, canh phải, tràn mép; chữ giới hạn 54% bề rộng. */
  .vdt-l135c-hero__content {
    margin: 0 calc(50% - 50vw);
    padding: 36px calc(50vw - 50%) 34px;
    background:
      linear-gradient(90deg, rgba(247, 251, 255, .96) 0%, rgba(247, 251, 255, .86) 44%, rgba(247, 251, 255, 0) 60%),
      linear-gradient(180deg, rgba(247, 251, 255, 0) 68%, #f1f8fd 100%),
      var(--vdt-l135c-bg-desktop, none) 100% 50% / auto 100% no-repeat;
  }

  .vdt-l135c-hero .vdt-l135c-hero__content > * {
    max-width: 54%;
  }

  .vdt-l135c-quick__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
  }

  .vdt-l135c-quick__list li + li {
    border-top: 0;
  }

  .vdt-l135c-quick__list li {
    border-bottom: 1px solid #eef2f7;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  /* Khối chữ cao hơn khi hẹp: giới hạn chiều cao ảnh để skyline không lấn sang cột chữ. */
  .vdt-l135c-hero__content {
    background:
      linear-gradient(90deg, rgba(247, 251, 255, .96) 0%, rgba(247, 251, 255, .86) 44%, rgba(247, 251, 255, 0) 60%),
      linear-gradient(180deg, #f6fbfe 0%, #f6fbfe 12%, rgba(247, 251, 255, .7) 20%, rgba(247, 251, 255, 0) 34%, rgba(247, 251, 255, 0) 68%, #f1f8fd 100%),
      var(--vdt-l135c-bg-desktop, none) 100% 100% / auto min(100%, 400px) no-repeat;
  }

  .vdt-l135c-hero .vdt-l135c-hero__content > * {
    max-width: 52%;
  }

  .vdt-l135c-hero .vdt-l135c-hero__topics {
    letter-spacing: .06em;
  }
}

/* ---------- Mobile <= 767: ảnh dọc, xếp chồng ---------- */

@media (max-width: 767px) {
  .vdt-l135c-hero {
    padding: 22px 0 24px;
    background: linear-gradient(180deg, #f7fbff 0%, var(--vdt-l135c-base) 100%);
  }

  .vdt-l135c-hero__inner {
    gap: 0;
  }

  /* Ảnh dọc tràn mép, neo đáy khối nội dung: skyline hiện ở khoảng trống dưới
     pills; phần trời phía trên nằm sau chữ với lớp phủ sáng. */
  .vdt-l135c-hero__content {
    max-width: none;
    min-height: 0;
    margin: -22px calc(50% - 50vw) 0;
    padding: 22px calc(50vw - 50%) min(64vw, 260px);
    background:
      linear-gradient(180deg, rgba(247, 251, 255, .92) 0%, rgba(247, 251, 255, .8) 50%, rgba(247, 251, 255, 0) 72%),
      var(--vdt-l135c-bg-mobile, none) center calc(100% + 8vw) / 100% auto no-repeat,
      var(--vdt-l135c-base);
  }

  .vdt-l135c-hero .vdt-l135c-hero__content > * {
    max-width: none;
  }

  .vdt-l135c-hero .vdt-l135c-hero__title {
    font-size: clamp(1.875rem, 8.4vw, 2.125rem);
  }

  .vdt-l135c-hero .vdt-l135c-hero__desc {
    font-size: 16px;
  }

  .vdt-l135c-hero__actions .vdt-btn {
    flex: 1 1 100%;
  }

  .vdt-l135c-hero .vdt-l135c-hero__topics {
    display: none;
  }

  .vdt-l135c-hero__pills ul {
    margin-top: 18px;
  }

  .vdt-l135c-hero__pills a {
    min-height: 44px;
    padding: 0 16px;
  }

  .vdt-l135c-quick {
    position: relative;
    margin-top: -36px;
    padding: 16px 12px 8px;
    border-radius: 22px;
  }

  .vdt-l135c-quick__list {
    display: block;
  }

  .vdt-l135c-quick__list li {
    border-bottom: 0;
  }

  .vdt-l135c-quick__list li + li {
    border-top: 1px solid #eef2f7;
  }

  .vdt-l135c-quick__link {
    min-height: 52px;
  }

  .vdt-l135c-quick__footer {
    min-height: 48px;
    margin: 8px 0 4px;
  }

  body.vdt-page .vdt-l135c-note {
    font-size: 13px;
  }

  .vdt-l135c-note a {
    min-height: 44px;
  }

  body.category-luat-xay-dung-135 .vdt-blog-archive {
    padding-top: 36px;
  }

  body.category-luat-xay-dung-135 #danh-sach-bai-viet {
    scroll-margin-top: 92px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vdt-l135c-quick {
    animation: none;
  }

  .vdt-l135c-hero__actions .vdt-btn,
  .vdt-l135c-hero__pills a,
  .vdt-l135c-quick__link,
  .vdt-l135c-quick__chevron,
  .vdt-l135c-quick__footer,
  .vdt-l135c-quick__footer svg {
    transition: none;
  }

  .vdt-l135c-hero__actions .vdt-btn:hover {
    transform: none;
  }
}
