/* ==========================================================
   NEWS BLOCKS (hc_news_*) - Trang tin tức
   ========================================================== */
:root {
  /* Đồng bộ bảng màu hệ thống qua Design Tokens */
  --hc-news-primary:      var(--hc-primary, #0D7C3E);
  --hc-news-primary-dark: var(--hc-primary-dark, #064A26);
  --hc-news-hover:        var(--hc-primary-light, #1A9958);
  --hc-news-text:         var(--hc-color-neutral-700, #374151);
  --hc-news-muted:        var(--hc-color-neutral-500, #6B7280);
  --hc-news-line:         var(--hc-border-subtle, #E5E7EB);
  --hc-news-soft:         var(--hc-primary-surface, #E8F5E9);
  --hc-news-badge:        var(--hc-accent, #F0B429);
}

.hc-news-page,
.hc-news-archive-page,
.hc-news-block,
.hc-news-item {
  font-family: var(--font-family-base, 'Montserrat', 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif);
}

/* Reset rule `nav { position: fixed; ... }` (<=1024px) trong app/assets/css/custom.css */
.hc-news-breadcrumb nav,
nav.hc-news-heading__tabs,
nav.hc-news-pagination {
  position: static;
  width: auto;
  height: auto;
  top: auto;
  left: auto;
  transform: none;
}
nav.hc-news-pagination {
  display: block;
}
nav.hc-news-pagination ul {
  position: static;
  width: auto;
  top: auto;
  transform: none;
}
nav.hc-news-pagination ul li {
  width: auto;
}
nav.hc-news-pagination ul li a {
  padding: 0 10px;
}
nav.hc-news-pagination ul li a::after {
  display: none;
}

/* ---------- Breadcrumb (Đồng bộ chuẩn phong cách thanh điều hướng nền trắng) ---------- */
.hc-news-breadcrumb {
  background: #FFFFFF !important;
  border-bottom: 1px solid #E5E7EB;
  padding: 14px 0;
  width: 100%;
}
.hc-news-breadcrumb .container,
.hc-news-breadcrumb .hc-news-breadcrumb__inner {
  width: 100% !important;
  max-width: 1400px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  /* padding-left: clamp(20px, 3.5vw, 48px) !important;
  padding-right: clamp(20px, 3.5vw, 48px) !important; */
  box-sizing: border-box !important;
}
@media (max-width: 768px) {
  .hc-news-breadcrumb {
    padding: 10px 0;
  }
  .hc-news-breadcrumb .container,
  .hc-news-breadcrumb .hc-news-breadcrumb__inner {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
}
.hc-news-breadcrumb__nav {
  display: flex !important;
  align-items: center;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  max-width: 100%;
}
.hc-news-breadcrumb__nav ul.hc-news-breadcrumb__list,
.hc-news-breadcrumb__nav ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.4;
}
.hc-news-breadcrumb__nav li {
  display: inline-flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.hc-news-breadcrumb__nav li cite {
  font-style: normal;
}
.hc-news-breadcrumb__nav li.list_br a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #4B5563 !important;
  text-decoration: none !important;
  font-weight: 500;
  font-size: 14px;
  transition: color 0.2s ease;
}
.hc-news-breadcrumb__nav li.list_br a .home_icon {
  width: 17px;
  height: 17px;
  stroke: #0D7C3E !important;
  stroke-width: 2.6;
  fill: none;
  transition: stroke 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}
.hc-news-breadcrumb__nav li.list_br a:hover {
  color: var(--color-accent) !important;
}
.hc-news-breadcrumb__nav li.list_br a:hover .home_icon {
  stroke: var(--color-accent) !important;
  transform: translateY(-1px);
}
.hc-news-breadcrumb__nav li.list_br a:hover cite {
  color: var(--color-accent) !important;
}
.hc-news-breadcrumb__nav .divider {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9CA3AF !important;
  margin: 0 2px;
}
.hc-news-breadcrumb__nav .divider svg {
  width: 12px;
  height: 12px;
  stroke: #9CA3AF !important;
  stroke-width: 3;
  display: block;
}
.hc-news-breadcrumb__nav li.title_single,
.hc-news-breadcrumb__nav .current {
  color: #064A26 !important;
  font-weight: 700 !important;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
}
@media (max-width: 768px) {
  .hc-news-breadcrumb__nav ul.hc-news-breadcrumb__list,
  .hc-news-breadcrumb__nav ul {
    font-size: 13px;
    gap: 6px 8px;
  }
  .hc-news-breadcrumb__nav li.list_br a {
    font-size: 13px;
    gap: 5px;
  }
  .hc-news-breadcrumb__nav li.list_br a .home_icon {
    width: 15px;
    height: 15px;
  }
  .hc-news-breadcrumb__nav .divider svg {
    width: 10px;
    height: 10px;
  }
  .hc-news-breadcrumb__nav li.title_single,
  .hc-news-breadcrumb__nav .current {
    font-size: 13px;
  }
}

/* Compact news and project archive breadcrumbs, including existing markup. */
html body .hc-news-breadcrumb.hc-news-breadcrumb--compact,
html body:is(.category-blog, .category-du-an) .hc-news-breadcrumb {
  padding-block: 4px !important;
  height: auto !important;
  min-height: 0 !important;
}

html body .hc-news-breadcrumb--compact .hc-news-breadcrumb__inner,
html body:is(.category-blog, .category-du-an) .hc-news-breadcrumb > .hc-news-breadcrumb__inner {
  padding: 0 !important;
}

html body .hc-news-breadcrumb--compact .hc-news-breadcrumb__nav,
html body .hc-news-breadcrumb--compact ul.hc-news-breadcrumb__list,
html body:is(.category-blog, .category-du-an) .hc-news-breadcrumb .hc-news-breadcrumb__nav,
html body:is(.category-blog, .category-du-an) .hc-news-breadcrumb ul.hc-news-breadcrumb__list {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

html body .hc-news-breadcrumb--compact ul.hc-news-breadcrumb__list,
html body:is(.category-blog, .category-du-an) .hc-news-breadcrumb ul.hc-news-breadcrumb__list {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  line-height: 1.5;
}

html body .hc-news-breadcrumb--compact .hc-news-breadcrumb__list li,
html body:is(.category-blog, .category-du-an) .hc-news-breadcrumb .hc-news-breadcrumb__list li {
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
}

/* ---------- Heading + tabs (tiêu đề trái, tab danh mục phải) ---------- */
.hc-news-heading {
  padding: 36px 0 28px;
}
.hc-news-heading__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}
.hc-news-heading__title {
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
  margin: 0;
  font-family: var(--font-family-heading, var(--font-family-base, inherit));
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--hc-news-primary);
}
.hc-news-heading__description {
  margin-top: 4px;
  color: var(--hc-news-muted);
  font-size: 18px;
  line-height: 1.5;
}
.hc-news-heading__description p {
  margin: 0;
}

/* Đầu trang danh mục: breadcrumb và tiêu đề theo bố cục Dự án. */
#content.hc-news-archive-page > .hc-news-breadcrumb {
  padding: 24px 0 10px;
}
#content.hc-news-archive-page > .hc-news-breadcrumb .hc-news-breadcrumb__nav {
  background: transparent !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
#content.hc-news-archive-page > .hc-news-breadcrumb .hc-news-breadcrumb__list {
  gap: 12px;
  font-size: 16px;
  line-height: 1.5;
}
#content.hc-news-archive-page > .hc-news-breadcrumb .list_br a {
  color: #667085;
}
#content.hc-news-archive-page > .hc-news-breadcrumb .list_br a .home_icon {
  width: 22px;
  height: 22px;
  stroke: var(--hc-news-primary);
}
#content.hc-news-archive-page > .hc-news-breadcrumb .list_br a:hover {
  color: var(--hc-news-primary);
}
#content.hc-news-archive-page > .hc-news-breadcrumb .list_br a:hover .home_icon {
  stroke: var(--hc-news-primary-dark);
}
#content.hc-news-archive-page > .hc-news-breadcrumb .divider svg {
  stroke: #98A2B3;
}
#content.hc-news-archive-page > .hc-news-breadcrumb .title_single.current {
  color: var(--hc-news-primary);
}
#content.hc-news-archive-page > .hc-news-heading {
  padding: 18px 0 28px;
}
#content.hc-news-archive-page > .hc-news-heading .hc-news-heading__inner {
  display: block;
  margin-bottom: 0 !important;
}
#content.hc-news-archive-page > .hc-news-heading .hc-news-heading__content {
  position: relative;
  padding-left: 48px;
}
#content.hc-news-archive-page > .hc-news-heading .hc-news-heading__content::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 8px;
  border-radius: 8px;
  background: var(--hc-news-primary);
}
#content.hc-news-archive-page > .hc-news-heading .hc-news-heading__title {
  color: var(--hc-news-primary);
  font-size: 44px;
  line-height: 1.18;
  letter-spacing: 0;
  text-transform: none;
}
#content.hc-news-archive-page > .hc-news-heading .hc-news-heading__description {
  color: #667085;
  font-size: 18px;
}
@media (max-width: 549px) {
  #content.hc-news-archive-page > .hc-news-heading .hc-news-heading__content {
    padding-left: 24px;
  }
  #content.hc-news-archive-page > .hc-news-heading .hc-news-heading__title {
    font-size: 32px;
  }
  #content.hc-news-archive-page > .hc-news-heading .hc-news-heading__description {
    font-size: 16px;
  }
}
.hc-news-heading__tabs {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.hc-news-heading__tab-item {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-block;
}
.hc-news-heading__tab {
  position: relative;
  padding: 8px 0;
  font-size: 16px;
  color: var(--hc-news-text);
  white-space: nowrap;
  transition: color .2s;
}
.hc-news-heading__tab::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--hc-news-primary);
  transition: width .25s;
}
.hc-news-heading__tab:hover,
.hc-news-heading__tab.is-active,
.hc-news-heading__tab.active {
  color: var(--hc-news-primary);
}
.hc-news-heading__tab.is-active,
.hc-news-heading__tab.active {
  font-weight: 700;
}
.hc-news-heading__tab:hover::after,
.hc-news-heading__tab.is-active::after,
.hc-news-heading__tab.active::after {
  width: 100%;
}

/* Giới hạn độ rộng tab để tên danh mục dài không làm vỡ hàng */
.hc-news-heading__tab {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hc-news-heading__tabs {
  align-items: center;
}
/* Menu "Xem thêm" chứa tab dư */
.hc-news-heading__more {
  position: relative;
}
.hc-news-heading__more-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  overflow: visible;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.hc-news-heading__more-toggle::-webkit-details-marker {
  display: none;
}
.hc-news-heading__more-toggle svg {
  transition: transform .25s ease;
}
.hc-news-heading__more[open] .hc-news-heading__more-toggle svg {
  transform: rotate(180deg);
}
.hc-news-heading__more[open] .hc-news-heading__more-toggle,
.hc-news-heading__more.has-active .hc-news-heading__more-toggle {
  color: var(--hc-news-primary);
}
.hc-news-heading__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  min-width: 220px;
  max-width: 300px;
  max-height: 320px;
  overflow-y: auto;
  padding: 6px 0;
  background: #fff;
  border-top: 3px solid var(--hc-news-primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
  animation: hc-news-dropdown .2s ease;
}
.hc-news-heading__dropdown-item {
  padding: 10px 18px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--hc-news-text);
  transition: background-color .2s ease, color .2s ease, padding-left .2s ease;
}
.hc-news-heading__dropdown-item:hover,
.hc-news-heading__dropdown-item.is-active {
  padding-left: 22px;
  background: var(--hc-news-soft);
  color: var(--hc-news-primary);
}
@keyframes hc-news-dropdown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Grid + card ---------- */
.hc-news-grid {
  display: grid;
  grid-template-columns: repeat(var(--hc-cols, 3), minmax(0, 1fr));
  gap: 12px;
}
.hc-news-grid--cols-1 { --hc-cols: 1; }
.hc-news-grid--cols-2 { --hc-cols: 2; }
.hc-news-grid--cols-3 { --hc-cols: 3; }
.hc-news-grid--cols-4 { --hc-cols: 4; }

.hc-news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.hc-news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(6, 74, 38, 0.14);
  border-color: #064A26;
}
.hc-news-card__thumb {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--hc-news-soft);
  border-radius: 8px 8px 0 0;
}
.hc-news-card__thumb img,
.hc-news-card__thumb .hc-news-thumb-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  transition: transform .6s cubic-bezier(0.16, 1, 0.3, 1);
}
.hc-news-card:hover .hc-news-card__thumb img {
  transform: scale(1.07);
}
.hc-news-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 22px 22px;
}
.hc-news-card__title {
  margin: 0 0 10px;
  font-family: var(--font-family-base, inherit);
  font-size: 17.5px;
  line-height: 1.42;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 48px;
}
.hc-news-card__title a {
  color: #1A1A2E;
  text-decoration: none;
  transition: color .25s ease;
}
.hc-news-card__title a:hover {
  color: #064A26;
}
.hc-news-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.hc-news-card__date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  line-height: 1.4;
  color: #6B7280;
  font-weight: 500;
}
.hc-news-card__date svg {
  color: #0D7C3E;
  stroke: #0D7C3E;
  flex-shrink: 0;
}
.hc-news-card__excerpt {
  font-size: 13.5px;
  line-height: 1.6;
  color: #4B5563;
  margin: 0 0 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 64px;
}
.hc-news-card__action {
  margin-top: auto;
  padding-top: 6px;
}
.hc-news-card__btn-detail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  background: #064A26;
  color: #FFFFFF !important;
  font-family: 'Montserrat', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: 8px;
  text-decoration: none;
  transition: all .3s ease;
  box-shadow: 0 2px 6px rgba(6, 74, 38, 0.18);
  box-sizing: border-box;
}
.hc-news-card__btn-detail:hover {
  background: #0D7C3E;
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(6, 74, 38, 0.28);
}
.hc-news-card__btn-detail svg {
  width: 16px;
  height: 16px;
  transition: transform .25s ease;
}
.hc-news-card__btn-detail:hover svg {
  transform: translateX(3px);
}

.hc-news-thumb-placeholder {
  background: linear-gradient(135deg, var(--hc-news-soft), #F0FFF4);
}
.hc-news-empty {
  color: var(--hc-news-muted);
}

/* ---------- Pagination ---------- */
.hc-news-pagination {
  margin-top: 40px;
}
.hc-news-pagination .hc-news-pagination__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hc-news-pagination .hc-news-pagination__list li {
  display: flex;
  flex: 0 0 auto;
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  list-style: none;
}
.hc-news-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 40px;
  height: 40px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid var(--hc-news-line);
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  color: var(--hc-news-text);
  text-decoration: none;
}
.hc-news-pagination .page-numbers.current,
.hc-news-pagination a.page-numbers:hover {
  background: var(--hc-news-primary);
  border-color: var(--hc-news-primary);
  color: #fff;
}
.hc-news-pagination .page-numbers.dots {
  min-width: 0;
  padding: 0 4px;
  border-color: transparent;
  background: transparent;
}
.hc-news-pagination .page-numbers svg {
  display: block;
}
.hc-news-pagination .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Latest sidebar (slider) ---------- */
.hc-news-latest__title {
  margin: 0 0 15px;
  padding: 0 20px;
  height: 48px;
  line-height: 48px;
  background: var(--hc-news-primary);
  color: #fff;
  font-family: var(--font-family-heading, var(--font-family-base, inherit));
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-radius: 8px 8px 0 0;
}
.hc-news-latest__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.hc-news-latest__track::-webkit-scrollbar {
  display: none;
}
.hc-news-latest__list {
  flex: 0 0 100%;
  scroll-snap-align: start;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hc-news-latest .hc-news-latest__item {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  padding: 12px 14px;
  background: var(--hc-news-soft);
  border-radius: 8px;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.hc-news-latest__thumb {
  flex: 0 0 84px;
  height: 52px;
  overflow: hidden;
  background: #fff;
  border-radius: 8px;
}
.hc-news-latest__thumb img,
.hc-news-latest__thumb .hc-news-thumb-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}
.hc-news-latest__name {
  flex: 1;
  padding-right: 14px;
  font-family: var(--font-family-base, inherit);
  font-size: 13.5px;
  line-height: 1.45;
  font-weight: 600;
  color: var(--hc-news-text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hc-news-latest__name:hover {
  color: var(--hc-news-hover);
}
.hc-news-latest__badge {
  position: absolute;
  top: 0;
  right: 0;
  width: 46px;
  height: 46px;
  overflow: hidden;
  pointer-events: none;
}
.hc-news-latest__badge span {
  position: absolute;
  top: 8px;
  right: -18px;
  width: 70px;
  transform: rotate(45deg);
  background: var(--hc-news-badge);
  color: var(--hc-news-primary-dark);
  font-size: 10px;
  font-weight: 800;
  font-style: italic;
  line-height: 16px;
  text-align: center;
}
.hc-news-latest__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-top: 5px;
}
.hc-news-latest__dot {
  width: 10px;
  height: 10px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #E5E7EB;
  cursor: pointer;
  transition: background .2s, box-shadow .2s;
}
.hc-news-latest__dot.is-active {
  background: var(--hc-news-primary);
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--hc-news-primary);
}

/* ---------- Section theo danh mục ---------- */
.hc-news-section {
  padding: 40px 0 30px;
}
.hc-news-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hc-news-primary);
}
.hc-news-section__title {
  margin: 0;
  font-size: 35px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--hc-news-primary);
}
.hc-news-section__title a {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}
.hc-news-section__more {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  font-size: 19px;
  font-weight: 500;
  color: var(--hc-news-text);
  white-space: nowrap;
}
.hc-news-section__more:hover {
  color: var(--hc-news-hover);
}
.hc-news-section__more svg {
  transition: transform .2s;
}
.hc-news-section__more:hover svg {
  transform: translateX(4px);
}

/* ---------- Layout lưới 3/4 + sidebar 1/4 (hc_news_grid sidebar="true", hc_news_archive) ---------- */
.hc-news-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

/* Danh sách Tin tức: ưu tiên diện tích cho ba thẻ bài viết. */
@media (min-width: 1025px) {
  .hc-news-archive-page .hc-news-layout {
    grid-template-columns: minmax(0, 1fr) clamp(240px, 21%, 270px);
    column-gap: 16px;
  }
}
.hc-news-archive-page .hc-news-grid {
  gap: 22px 14px;
}
.hc-news-archive-page .hc-news-card__body {
  padding: 18px 16px 20px;
}
.hc-news-archive-page .hc-news-card__title {
  -webkit-line-clamp: 3;
  min-height: 0;
}
.hc-news-archive-page .hc-news-card__excerpt {
  -webkit-line-clamp: 4;
  min-height: 0;
}
.hc-news-archive {
  padding-bottom: 60px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hc-news-heading__inner { flex-direction: column; align-items: flex-start; }
  .hc-news-heading__tabs { justify-content: flex-start; }
  .hc-news-heading__dropdown { right: auto; left: 0; max-width: calc(100vw - 32px); }
  .hc-news-heading__title { font-size: 40px; }
  .hc-news-section__title { font-size: 30px; }
  .hc-news-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 849px) {
  .hc-news-heading { padding: 30px 0 24px; }
  .hc-news-grid--cols-3,
  .hc-news-grid--cols-4 { --hc-cols: 2; }
  .hc-news-section { padding: 30px 0 20px; }
  .hc-news-section__more { font-size: 16px; }
  .hc-news-card__body { padding-top: 18px; }
}
@media (max-width: 549px) {
  .hc-news-breadcrumb__nav { font-size: 14px; }
  .hc-news-heading__title { font-size: 32px; }
  .hc-news-heading__tabs {
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
    gap: 4px 18px;
  }
  .hc-news-heading__tab { max-width: 100%; }
  .hc-news-heading__tabs { position: relative; }
  .hc-news-heading__more { position: static; }
  .hc-news-heading__dropdown { left: 0; right: 0; min-width: 0; max-width: none; }
  .hc-news-section__title { font-size: 24px; }
  .hc-news-grid--cols-2,
  .hc-news-grid--cols-3,
  .hc-news-grid--cols-4 { --hc-cols: 1; }
  .hc-news-card__title { min-height: 0; }
}

/* page.php bỏ cột (.col) quanh nội dung => thêm lề 16px trên mobile cho block đặt trực tiếp trong trang */
@media (max-width: 849px) {
  .row-main > div:not(.col) > .col-inner > .hc-news-breadcrumb,
  .row-main > div:not(.col) > .col-inner > .hc-news-heading,
  .row-main > div:not(.col) > .col-inner > .hc-news-grid-block,
  .row-main > div:not(.col) > .col-inner > .hc-news-section,
  .row-main > div:not(.col) > .col-inner > .hc-news-latest {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ==========================================================
   HIỆU ỨNG: hover
   ========================================================== */
/* Card: nổi lên, ảnh phóng nhẹ + vệt sáng lướt qua, gạch dưới chạy từ trái sang */
.hc-news-card::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 3px;
  background: var(--hc-news-primary);
  transition: width .45s ease;
}
.hc-news-card:hover {
  translate: 0 -6px;
}
.hc-news-card:hover::after {
  width: 100%;
}
.hc-news-card__thumb::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  z-index: 2;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .35) 100%);
  transform: skewX(-25deg);
  pointer-events: none;
}
.hc-news-card:hover .hc-news-card__thumb::after {
  animation: hc-news-shine .75s ease;
}
.hc-news-card__thumb img {
  transition: transform .6s ease, opacity .5s ease;
}
.hc-news-card:hover .hc-news-card__thumb img {
  transform: scale(1.08);
}
.hc-news-card__title a {
  transition: color .25s ease;
}
.hc-news-card:hover .hc-news-card__title a {
  color: var(--hc-news-primary);
}

/* Sidebar: nền đậm lên, trượt nhẹ sang phải, ảnh phóng */
.hc-news-latest .hc-news-latest__item {
  transition: background-color .3s ease, translate .3s ease, box-shadow .3s ease;
}
.hc-news-latest .hc-news-latest__item:hover {
  background: #E8F5E9;
  translate: 4px 0;
  box-shadow: -3px 0 0 var(--hc-news-primary);
}
.hc-news-latest__thumb img {
  transition: transform .5s ease, opacity .5s ease;
}
.hc-news-latest__item:hover .hc-news-latest__thumb img {
  transform: scale(1.1);
}
.hc-news-latest__name {
  transition: color .25s ease;
}
.hc-news-latest__item:hover .hc-news-latest__name {
  color: var(--hc-news-primary);
}

/* Tiêu đề khối & "Xem thêm" */
.hc-news-section__title a {
  transition: color .25s ease;
}
.hc-news-section__title a:hover {
  color: var(--hc-news-hover);
}
.hc-news-section__more {
  position: relative;
  padding: 4px 0;
}
.hc-news-section__more::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width .3s ease;
}
.hc-news-section__more:hover::after {
  width: calc(100% - 22px);
}
.hc-news-section__more svg {
  transition: transform .3s ease;
}
.hc-news-section__more:hover svg {
  transform: translateX(6px);
}

/* Phân trang & breadcrumb */
.hc-news-pagination .page-numbers {
  transition: background-color .25s ease, border-color .25s ease, color .25s ease, translate .25s ease;
}
.hc-news-pagination a.page-numbers:hover {
  translate: 0 -2px;
}
.hc-news-breadcrumb__nav a {
  transition: color .25s ease;
}

/* ==========================================================
   HIỆU ỨNG: loading (chỉ bật khi JS chạy - class .hc-news-anim trên <html>)
   ========================================================== */
/* Khung chờ (shimmer) trong lúc ảnh đang tải */
.hc-news-anim .hc-news-card__thumb:not(.is-loaded)::before,
.hc-news-anim .hc-news-latest__thumb:not(.is-loaded)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, var(--hc-news-soft) 25%, #FFFFFF 50%, var(--hc-news-soft) 75%);
  background-size: 200% 100%;
  animation: hc-news-skeleton 1.2s linear infinite;
}
.hc-news-latest__thumb {
  position: relative;
}
.hc-news-anim .hc-news-card__thumb:not(.is-loaded) img,
.hc-news-anim .hc-news-latest__thumb:not(.is-loaded) img {
  opacity: 0;
}

/* Xuất hiện dần khi cuộn tới, trễ nối tiếp theo thứ tự */
.hc-news-anim .hc-news-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity .7s ease var(--hc-news-delay, 0ms),
    transform .7s cubic-bezier(.2, .7, .2, 1) var(--hc-news-delay, 0ms),
    translate .35s ease,
    background-color .3s ease,
    box-shadow .3s ease;
}
.hc-news-anim .hc-news-latest__item.hc-news-reveal {
  transform: translateX(24px);
}
.hc-news-anim .hc-news-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes hc-news-shine {
  100% { left: 125%; }
}
@keyframes hc-news-skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hc-news-card,
  .hc-news-card::after,
  .hc-news-card__thumb img,
  .hc-news-latest__item,
  .hc-news-section__more svg {
    transition: none !important;
    animation: none !important;
  }
  .hc-news-card:hover,
  .hc-news-latest .hc-news-latest__item:hover {
    translate: none;
  }
}

/* ==========================================================
   TRANG CHI TIẾT BÀI VIẾT (single.php)
   ========================================================== */
/* Thanh tiến trình đọc - JS đặt top ngay dưới header cố định */
.hc-news-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9990;
  height: 5px;
  background: rgba(240, 180, 41, .22);
  pointer-events: none;
}
.hc-news-progress__bar {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--hc-news-badge), #FFD700);
  box-shadow: 0 0 8px rgba(240, 180, 41, .7);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .1s linear;
  will-change: transform;
}

/* Top bar Breadcrumb & Nút quay lại danh sách */
.hc-news-single-topbar {
  background: #F8FAF9;
  border-bottom: 1px solid #E5E7EB;
  padding: 10px 0 !important;
}
.hc-news-single-topbar__inner {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 16px !important;
}
.hc-news-single-topbar__breadcrumb {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}
.hc-news-single-topbar .hc-news-breadcrumb {
  margin: 0;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}
.hc-news-single-topbar .hc-news-breadcrumb .hc-news-breadcrumb__inner {
  padding: 0 !important;
  max-width: none !important;
}
.hc-news-single-topbar .hc-news-breadcrumb__nav {
  display: inline-flex !important;
  align-items: center;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.hc-news-single-topbar .hc-news-breadcrumb__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.4;
  color: #6B7280;
}
.hc-news-single-topbar .hc-news-breadcrumb__list li.list_br a {
  color: #6B7280 !important;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s ease;
}
.hc-news-single-topbar .hc-news-breadcrumb__list li.list_br a:hover {
  color: #064A26 !important;
}
.hc-news-single-topbar .hc-news-breadcrumb__list li.list_br a .home_icon {
  width: 16px;
  height: 16px;
  stroke: #0D7C3E !important;
}
.hc-news-single-topbar .hc-news-breadcrumb__list li.list_br a:hover .home_icon {
  stroke: #064A26 !important;
}
.hc-news-single-topbar .hc-news-breadcrumb__list .divider {
  display: inline-flex;
  align-items: center;
  margin: 0 2px;
}
.hc-news-single-topbar .hc-news-breadcrumb__list .divider svg {
  width: 10px;
  height: 10px;
  stroke: #9CA3AF !important;
}
.hc-news-single-topbar .hc-news-breadcrumb__list li.title_single.current {
  color: #064A26 !important;
  font-size: 13.5px;
  font-weight: 700 !important;
  max-width: 650px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Nút quay lại danh sách Tin tức nằm ngang hàng bên phải breadcrumb */
.hc-news-single-topbar__back {
  display: block;
  flex: 0 0 auto !important;
}
.hc-news-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px !important;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #d1d5db;
  color: #374151;
  font-size: 13px !important;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.22s ease;
  white-space: nowrap;
}
.hc-news-back-link:hover {
  background: #064A26;
  border-color: #064A26;
  color: #ffffff !important;
  transform: translateX(-3px);
  box-shadow: 0 3px 8px rgba(6, 74, 38, 0.2);
}
.hc-news-back-link svg {
  transition: transform 0.22s ease;
  color: currentColor;
}
.hc-news-back-link:hover svg {
  transform: translateX(-2px);
}

.hc-news-single {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 36px;
  align-items: start;
  padding-top: 36px !important;
  padding-bottom: 60px;
  box-sizing: border-box;
}
@media (min-width: 1200px) {
  .hc-news-single {
    padding-right: 16px;
  }
}

/* Header bài viết theo chuẩn layout ảnh mẫu */
.hc-news-single__meta-top {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.hc-news-single__badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 8px;
  background: var(--hc-color-forest-100, #E8F5E9);
  border: 1px solid var(--hc-news-soft, #E8F5E9);
  color: var(--hc-color-forest-850, #064A26) !important;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.hc-news-single__badge:hover {
  background: #064A26;
  border-color: #064A26;
  color: #ffffff !important;
}
.hc-news-single__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: #6b7280;
}
.hc-news-single__meta-item svg {
  color: #9ca3af;
  flex-shrink: 0;
}
.hc-news-single__meta-item time {
  color: #4b5563;
  font-weight: 500;
}

.hc-news-single__cat {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--hc-news-primary);
  transition: color .25s ease;
}
.hc-news-single__cat:hover {
  color: var(--hc-news-hover);
}
.hc-news-single__title {
  margin: 0 0 24px;
  font-size: 27px;
  line-height: 1.35;
  font-weight: 750;
  color: #1A1A2E;
  text-transform: none;
  letter-spacing: -0.3px;
}
.hc-news-single__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  min-height: 55px;
  margin-bottom: 35px;
  padding: 8px 0;
  border-top: 1px solid rgba(102, 102, 102, .15);
  border-bottom: 1px solid rgba(102, 102, 102, .15);
}
.hc-news-single__date {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #6B7280;
}
.hc-news-single__date svg {
  color: var(--hc-news-primary);
}
.hc-news-single__share {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hc-news-single__share-label {
  margin-right: 6px;
  font-size: 14px;
  color: var(--hc-news-text);
}
.hc-news-single__share-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 1.5px solid #0D7C3E;
  border-radius: 50%;
  background: #F0FFF4;
  color: #064A26 !important;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(6, 74, 38, .08);
  transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.hc-news-single__share-btn:hover {
  transform: translateY(-2px);
  background: #064A26 !important;
  border-color: #064A26 !important;
  color: #F0B429 !important;
  box-shadow: 0 4px 12px rgba(6, 74, 38, .22);
}
.hc-news-single__copied {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--hc-news-primary-dark);
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 4px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}
.hc-news-single__share-btn.is-copied .hc-news-single__copied {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Nội dung bài */
.hc-news-single__lead,
.hc-news-single__content blockquote {
  position: relative;
  margin: 0 0 28px;
  padding: 20px 24px;
  border-left: 5px solid var(--hc-news-primary);
  background: var(--hc-news-soft);
  font-size: 17px;
  line-height: 1.6;
  font-style: italic;
  color: var(--hc-news-text);
}
.hc-news-single__lead p:last-child,
.hc-news-single__content blockquote p:last-child {
  margin-bottom: 0;
}
.hc-news-single__content,
.hc-pd-panel .entry-content,
.post-detail-content {
  font-size: 16px;
  line-height: 1.85;
  color: #374151;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.hc-news-single__content p,
.hc-pd-panel .entry-content p,
.post-detail-content p {
  margin: 0 0 1.5em;
  line-height: 1.85;
  color: #374151;
  font-size: 16px;
}
.hc-news-single__content h1,
.hc-pd-panel .entry-content h1,
.post-detail-content h1 {
  font-size: 26px;
  line-height: 1.35;
  font-weight: 700;
  color: #064A26;
  margin: 1.8em 0 0.8em;
  padding-bottom: 10px;
  border-bottom: 2px solid #E5E7EB;
}
.hc-news-single__content h2,
.hc-pd-panel .entry-content h2,
.post-detail-content h2 {
  font-size: 22px;
  line-height: 1.38;
  font-weight: 700;
  color: #064A26;
  margin: 1.7em 0 0.75em;
  padding-left: 14px;
  position: relative;
}
.hc-news-single__content h2::before,
.hc-pd-panel .entry-content h2::before,
.post-detail-content h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background: #064A26;
  border-radius: 8px;
}
.hc-news-single__content h3,
.hc-pd-panel .entry-content h3,
.post-detail-content h3 {
  font-size: 19px;
  line-height: 1.42;
  font-weight: 700;
  color: #064A26;
  margin: 1.5em 0 0.6em;
}
.hc-news-single__content h4,
.hc-pd-panel .entry-content h4,
.post-detail-content h4 {
  font-size: 17px;
  line-height: 1.45;
  font-weight: 600;
  color: #1A1A2E;
  margin: 1.3em 0 0.5em;
}
.hc-news-single__content strong,
.hc-news-single__content b,
.hc-pd-panel .entry-content strong,
.hc-pd-panel .entry-content b,
.post-detail-content strong,
.post-detail-content b {
  font-weight: 700;
  color: #1A1A2E;
}
.hc-news-single__content a,
.hc-pd-panel .entry-content a,
.post-detail-content a {
  color: #064A26;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: color 0.2s ease;
}
.hc-news-single__content a:hover,
.hc-pd-panel .entry-content a:hover,
.post-detail-content a:hover {
  color: #F0B429;
}
.hc-news-single__content ul,
.hc-pd-panel .entry-content ul,
.post-detail-content ul {
  list-style: disc outside;
  margin: 0 0 1.5em 1.6em;
  padding: 0;
}
.hc-news-single__content ol,
.hc-pd-panel .entry-content ol,
.post-detail-content ol {
  list-style: decimal outside;
  margin: 0 0 1.5em 1.6em;
  padding: 0;
}
.hc-news-single__content li,
.hc-pd-panel .entry-content li,
.post-detail-content li {
  margin-bottom: 0.55em;
  line-height: 1.75;
  color: #374151;
}
.hc-news-single__content li::marker,
.hc-pd-panel .entry-content li::marker,
.post-detail-content li::marker {
  color: #064A26;
  font-weight: bold;
}
/* Chuẩn hóa hiển thị ảnh trong bài viết chi tiết (khống chế max-height hợp lý) */
.hc-news-single__featured-media {
  margin: 0 0 28px;
  text-align: center;
}
.hc-news-single__featured-img,
.hc-news-single__content img,
.post-detail-content img {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto;
  object-fit: cover !important;
  object-position: center !important;
  margin: 0 !important;
  border-radius: 8px !important;
  border: 1px solid #E5E7EB;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

/* Hiển thị ảnh trong phần mô tả chi tiết sản phẩm: Chiều ngang phủ đều 100% bằng nhau, chiều dài tự động theo tỉ lệ từng ảnh, không bị cắt xén */
.hc-pd-panel .entry-content img,
.hc-pd-page .entry-content img,
.entry-content img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center !important;
  margin: 16px auto !important;
  border-radius: 8px !important;
  border: 1px solid #E5E7EB;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.hc-pd-panel .entry-content figure,
.hc-pd-page .entry-content figure,
.hc-pd-page .hc-post-figure,
.hc-post-figure {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 24px auto !important;
  text-align: center;
}

.hc-news-single__content img:hover,
.hc-pd-panel .entry-content img:hover,
.entry-content img:hover,
.post-detail-content img:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.hc-news-single__content figure,
.hc-news-single__content .wp-caption,
.hc-pd-panel .entry-content figure,
.hc-pd-panel .entry-content .wp-caption,
.entry-content figure,
.entry-content .wp-caption,
.hc-post-figure,
.post-detail-content figure,
.post-detail-content .wp-caption {
  max-width: 100%;
  margin: 26px auto 24px;
  text-align: center;
}

/* Chú thích ảnh (Caption) theo đúng màu thương hiệu Huy Cường */
.hc-news-single__content figcaption,
.hc-news-single__content .wp-caption-text,
.hc-pd-panel .entry-content figcaption,
.hc-pd-panel .entry-content .wp-caption-text,
.entry-content figcaption,
.entry-content .wp-caption-text,
.hc-img-caption,
.post-detail-content figcaption,
.post-detail-content .wp-caption-text {
  display: block;
  margin: 10px auto 20px;
  padding: 0;
  font-size: 13.5px;
  font-style: italic;
  font-weight: 500;
  line-height: 1.55;
  text-align: center;
  color: var(--hc-color-forest-850, #064A26) !important;
  max-width: 95%;
}

.hc-img-caption::before,
.entry-content figcaption::before {
  content: none !important;
}
.hc-news-single__content blockquote,
.hc-pd-panel .entry-content blockquote,
.post-detail-content blockquote {
  margin: 1.8em 0;
  padding: 16px 22px;
  background: #F0FFF4;
  border-left: 4px solid #064A26;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  font-size: 16px;
  line-height: 1.7;
  color: #374151;
}
.hc-news-single__content blockquote p:last-child,
.hc-pd-panel .entry-content blockquote p:last-child,
.post-detail-content blockquote p:last-child {
  margin-bottom: 0;
}
.hc-news-single__content table,
.hc-pd-panel .entry-content table,
.post-detail-content table {
  width: 100%;
  margin: 1.8em 0;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
.hc-news-single__content th,
.hc-news-single__content td,
.hc-pd-panel .entry-content th,
.hc-pd-panel .entry-content td,
.post-detail-content th,
.post-detail-content td {
  padding: 11px 14px;
  border: 1px solid #E5E7EB;
  text-align: left;
  line-height: 1.6;
}
.hc-news-single__content th,
.hc-pd-panel .entry-content th,
.post-detail-content th {
  background: #064A26;
  color: #ffffff;
  font-weight: 600;
}
.hc-news-single__content tr:nth-child(even) td,
.hc-pd-panel .entry-content tr:nth-child(even) td,
.post-detail-content tr:nth-child(even) td {
  background: #F8FAF9;
}
.hc-news-single__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(102, 102, 102, .15);
}
.hc-news-single__tags a {
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--hc-news-soft);
  font-size: 13px;
  color: var(--hc-news-primary);
  transition: background-color .25s ease, color .25s ease;
}
.hc-news-single__tags a:hover {
  background: var(--hc-news-primary);
  color: #fff;
}

.hc-news-single__content .blog-share,
.hc-news-single__content .is-divider {
  display: none !important;
}

/* Chân bài viết: Nút quay lại danh sách & Chia sẻ */
.hc-news-single__footer-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid #E5E7EB;
}
.hc-btn-back-news {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  border-radius: 999px;
  background: #064A26;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(6, 74, 38, 0.2);
  transition: all 0.25s ease;
}
.hc-btn-back-news:hover {
  background: #0D7C3E;
  transform: translateX(-3px);
  box-shadow: 0 6px 18px rgba(6, 74, 38, 0.3);
  color: #ffffff !important;
}
.hc-btn-back-news svg {
  transition: transform 0.25s ease;
}
.hc-btn-back-news:hover svg {
  transform: translateX(-3px);
}

/* Sidebar tin tức: Bám sát 100% bố cục layout ảnh mẫu, tối ưu chiều cao hiển thị trọn vẹn */
.hc-news-single__sidebar {
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: calc(100vh - 125px);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.hc-news-single__sidebar::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* Card 1: Bài Viết Liên Quan (Sidebar) */
.hc-news-related {
  background: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 18px 18px 12px;
  box-shadow: 0 3px 16px rgba(0, 0, 0, 0.04);
}
.hc-news-related__header {
  margin-bottom: 12px;
}
.hc-news-related__title {
  margin: 0;
  font-size: 16.5px;
  font-weight: 700;
  color: #1A1A2E;
  line-height: 1.3;
  text-transform: none;
}
.hc-news-related__accent {
  width: 34px;
  height: 3px;
  background: var(--hc-color-gold-500, #F0B429);
  border-radius: 8px;
  margin-top: 6px;
}
.hc-news-related__list {
  display: flex;
  flex-direction: column;
}
.hc-news-related__item {
  position: relative;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 9px 0 10px;
  margin: 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid #E5E7EB;
  overflow: visible;
}
.hc-news-related__thumb {
  display: block;
  width: 68px;
  height: 68px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--hc-news-soft);
}
.hc-news-related__thumb img,
.hc-news-related__thumb .hc-news-thumb-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hc-news-related__content {
  min-width: 0;
}
.hc-news-related__item:first-child {
  padding-top: 2px;
}
.hc-news-related__item:last-child {
  border-bottom: none;
  padding-bottom: 2px;
}
.hc-news-related__name {
  margin: 0 0 4px;
  font-size: 13.5px;
  line-height: 1.4;
  font-weight: 600;
}
.hc-news-related__name a {
  color: #1A1A2E;
  text-decoration: none;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hc-news-related__name a:hover {
  color: var(--hc-color-forest-700, #0D7C3E);
}
.hc-news-related__foot {
  display: flex;
  align-items: center;
}
.hc-news-related__date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: #6B7280;
}
.hc-news-related__date svg {
  color: #9ca3af;
  flex-shrink: 0;
  width: 12px;
  height: 12px;
}

/* Card 2: Đăng Ký Nhận Bản Tin (Chuẩn màu chủ đạo Huy Cường: Xanh lá đậm & Nút vàng CTA) */
.hc-news-newsletter-card {
  background: linear-gradient(150deg, #032D17 0%, #064A26 100%);
  border: 1px solid rgba(240, 180, 41, 0.25);
  border-radius: 8px;
  padding: 18px 18px 16px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(6, 74, 38, 0.22);
}

/* Ẩn card Đăng Ký Nhận Bản Tin ở các trang chi tiết dự án */
.hc-news-single-page--project .hc-news-newsletter-card,
.hc-news-single--project .hc-news-newsletter-card,
.category-du-an .hc-news-newsletter-card,
.category-du-an-tieu-bieu .hc-news-newsletter-card,
.category-tin-du-an .hc-news-newsletter-card,
.category-du-an-hoan-thanh .hc-news-newsletter-card,
.category-du-an-dang-trien-khai .hc-news-newsletter-card {
  display: none !important;
}
.hc-news-newsletter-card__title {
  margin: 0 0 6px;
  color: #ffffff;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.35;
}
.hc-news-newsletter-card__desc {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  line-height: 1.45;
}
.hc-news-newsletter-card__btn {
  display: inline-block;
  width: 100%;
  padding: 9px 16px;
  background: #F0B429;
  color: #032D17 !important;
  font-size: 13.5px;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 3px 12px rgba(240, 180, 41, 0.35);
  transition: all 0.22s ease;
}
.hc-news-newsletter-card__btn:hover {
  background: #d99e1e;
  color: #032D17 !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 16px rgba(240, 180, 41, 0.5);
}

/* Khối Bài viết liên quan dạng Grid 3 cột ở dưới cùng trang */
.hc-news-bottom-related {
  padding: 50px 0 70px;
  background: #F8FAF9;
  border-top: 1px solid #E5E7EB;
  margin-top: 20px;
}
.hc-news-bottom-related__header {
  margin-bottom: 28px;
}
.hc-news-bottom-related__title {
  margin: 0;
  font-size: 22px;
  font-weight: 750;
  color: #1A1A2E;
  letter-spacing: -0.2px;
}
.hc-news-bottom-related__accent {
  width: 44px;
  height: 3px;
  background: var(--hc-color-gold-500, #F0B429);
  border-radius: 8px;
  margin-top: 10px;
}

@media (max-width: 1024px) {
  .hc-news-single {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .hc-news-single__sidebar {
    position: static;
  }
  .hc-news-related__list {
    display: flex;
    flex-direction: column;
  }
}
@media (max-width: 768px) {
  .hc-news-single-topbar__inner {
    flex-direction: column !important;
    align-items: flex-start !important;
    max-width: 100vw;
    box-sizing: border-box;
  }
  .hc-news-single-topbar__breadcrumb,
  .hc-news-single-topbar .hc-news-breadcrumb,
  .hc-news-single-topbar .hc-news-breadcrumb__nav {
    width: 100% !important;
    min-width: 0;
    overflow: hidden;
  }
  .hc-news-single-topbar .hc-news-breadcrumb__list {
    flex-wrap: nowrap !important;
    width: 100% !important;
    min-width: 0;
  }
  .hc-news-single-topbar .hc-news-breadcrumb__list li.list_br,
  .hc-news-single-topbar .hc-news-breadcrumb__list .divider {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .hc-news-single-topbar .hc-news-breadcrumb__list li.title_single.current {
    display: block !important;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .hc-news-single__featured-img,
  .hc-news-single__content img {
    max-height: 280px !important;
  }
  .hc-pd-panel .entry-content img,
  .hc-pd-page .entry-content img,
  .entry-content img {
    max-height: none !important;
  }
  .hc-news-single__title {
    font-size: 22px;
    line-height: 1.35;
  }
}

/* ==========================================================
   TRANG TÌM KIẾM (search.php)
   ========================================================== */
.hc-search-hero {
  padding: 30px 0 44px;
}
.hc-search-hero__title {
  margin: 0 0 10px;
  font-size: 40px;
  line-height: 1.2;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--hc-news-primary);
}
.hc-search-hero__summary {
  margin: 0 0 26px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--hc-news-text);
}
.hc-search-hero__summary strong {
  color: var(--hc-news-primary);
}
.hc-search-hero__keyword {
  font-weight: 600;
  color: var(--hc-news-primary-dark);
}

.hc-search-form {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 760px;
  height: 62px;
  margin: 0;
  padding: 6px 6px 6px 0;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(6, 74, 38, .08);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.hc-search-form:hover {
  border-color: #D1D5DB;
}
.hc-search-form:focus-within {
  border-color: var(--hc-news-primary);
  box-shadow: 0 12px 32px rgba(6, 74, 38, .1), 0 0 0 4px rgba(13, 124, 62, .1);
}
.hc-search-form__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 100%;
  color: var(--hc-news-primary);
  pointer-events: none;
}
.hc-search-form input.hc-search-form__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: inherit;
  font-size: 16px;
  color: var(--hc-news-text);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}
.hc-search-form input.hc-search-form__input::placeholder {
  color: #9CA3AF;
  opacity: 1;
}
.hc-search-form input.hc-search-form__input:focus {
  outline: none;
  box-shadow: none;
}
/* Ẩn nút xoá mặc định của trình duyệt, dùng nút × riêng */
.hc-search-form input.hc-search-form__input::-webkit-search-cancel-button {
  display: none;
}
.hc-search-form button.hc-search-form__clear {
  flex: 0 0 auto;
  display: none;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  min-height: 0;
  margin: 0;
  padding: 0;
  color: #6B7280;
  background: #F0FFF4;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease;
}
.hc-search-form input.hc-search-form__input:not(:placeholder-shown) ~ .hc-search-form__clear {
  display: inline-flex;
}
.hc-search-form button.hc-search-form__clear:hover {
  color: #fff;
  background: var(--hc-news-primary);
}
.hc-search-form button.hc-search-form__submit {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0 24px 0 28px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  color: #fff;
  background: var(--hc-news-primary-dark);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.hc-search-form button.hc-search-form__submit svg {
  transition: transform .25s ease;
}
.hc-search-form button.hc-search-form__submit:hover,
.hc-search-form button.hc-search-form__submit:focus-visible {
  color: var(--hc-news-primary-dark);
  background: var(--hc-news-badge);
  box-shadow: 0 6px 16px rgba(240, 180, 41, .45);
}
.hc-search-form button.hc-search-form__submit:hover svg {
  transform: translateX(3px);
}

/* Từ khoá được tô sáng trong tiêu đề kết quả */
.hc-search-results mark {
  padding: 0 2px;
  color: inherit;
  background: rgba(240, 180, 41, .45);
  border-radius: 8px;
}

/* Không có kết quả */
.hc-search-empty {
  margin-bottom: 44px;
  padding: 36px 32px;
  text-align: center;
  background: var(--hc-news-soft);
  border-top: 3px solid var(--hc-news-primary);
}
.hc-search-empty__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 14px;
  color: var(--hc-news-primary);
  background: #fff;
  border-radius: 50%;
}
.hc-search-empty__title {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--hc-news-primary-dark);
}
.hc-search-empty__tips {
  display: inline-block;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
  font-size: 15px;
  line-height: 1.7;
  color: var(--hc-news-text);
}
.hc-search-empty__tips li {
  position: relative;
  margin: 0;
  padding-left: 18px;
}
.hc-search-empty__tips li::before {
  content: "";
  position: absolute;
  top: .7em;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--hc-news-badge);
  border-radius: 50%;
}
.hc-search-suggest__title {
  margin: 0 0 24px;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--hc-news-primary);
}

@media (max-width: 849px) {
  .hc-search-hero { padding: 20px 0 32px; }
  .hc-search-hero__title { font-size: 30px; }
  .hc-search-page .hc-search-hero .container,
  .hc-search-page .hc-search-results.container {
    padding-left: 16px;
    padding-right: 16px;
  }
}
@media (max-width: 549px) {
  .hc-search-hero__title { font-size: 26px; }
  .hc-search-form { height: 54px; padding: 5px 5px 5px 0; gap: 4px; }
  .hc-search-form__icon { width: 44px; }
  .hc-search-form input.hc-search-form__input { font-size: 15px; }
  .hc-search-form button.hc-search-form__submit { width: 44px; padding: 0; }
  .hc-search-form__submit-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .hc-search-empty { padding: 28px 18px; }
  .hc-search-suggest__title { font-size: 20px; }
}

/* ==========================================================
   KIỂU HIỂN THỊ BÀI VIẾT NHƯ SẢN PHẨM (hc-prod_*)
   Block A - Lưới | Block B - Catalogue | Block C - Nổi bật
   ========================================================== */
.hc-news-block-shortcode { margin-bottom: 10px; }

/* ---------- Nút "Tư vấn" dùng chung ---------- */
.hc-prod-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid var(--hc-news-primary);
  border-radius: 8px;
  background: var(--hc-news-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .02em;
  transition: background .25s ease, border-color .25s ease, color .25s ease;
}
.hc-prod-cta svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}
.hc-prod-cta:hover {
  background: var(--hc-news-hover);
  border-color: var(--hc-news-hover);
  color: #fff;
}

/* ===================== BLOCK A - Lưới shop ===================== */
.hc-prod-grid {
  display: grid;
  grid-template-columns: repeat(var(--hc-prod-cols, 3), minmax(0, 1fr));
  gap: 30px 22px;
}
.hc-prod-grid--cols-1 { --hc-prod-cols: 1; }
.hc-prod-grid--cols-2 { --hc-prod-cols: 2; }
.hc-prod-grid--cols-3 { --hc-prod-cols: 3; }
.hc-prod-grid--cols-4 { --hc-prod-cols: 4; }

.hc-prod-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--hc-news-line);
  border-radius: 8px;
  overflow: hidden;
  transition: translate .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.hc-prod-card:hover {
  translate: 0 -6px;
  border-color: rgba(13, 124, 62, .25);
  box-shadow: 0 18px 36px rgba(13, 124, 62, .12);
}
.hc-prod-card__thumb {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--hc-news-soft);
}
.hc-prod-card__thumb img,
.hc-prod-card__thumb .hc-news-thumb-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s ease;
}
.hc-prod-card:hover .hc-prod-card__thumb img {
  transform: scale(1.06);
}
.hc-prod-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-block;
  max-width: calc(100% - 24px);
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--hc-news-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hc-prod-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
  padding: 18px 18px 20px;
}
.hc-prod-card__title {
  margin: 0;
  min-height: 46px;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hc-prod-card__title a {
  color: var(--hc-news-text);
  transition: color .2s ease;
}
.hc-prod-card:hover .hc-prod-card__title a {
  color: var(--hc-news-primary);
}
.hc-prod-card__date {
  margin-top: auto;
  font-size: 13px;
  color: var(--hc-news-muted);
}
.hc-prod-card__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: auto;
}
.hc-prod-card__actions .btn_view_detail,
.hc-prod-hero__actions .btn_view_detail,
.hc-prod-row__action .btn_view_detail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  background: var(--hc-news-primary, #064A26);
  color: #FFFFFF !important;
  font-family: 'Montserrat', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.25s ease;
  white-space: nowrap;
  flex: 1 1 auto;
  box-sizing: border-box;
}
.hc-prod-card__actions .btn_view_detail:hover,
.hc-prod-hero__actions .btn_view_detail:hover,
.hc-prod-row__action .btn_view_detail:hover {
  background: var(--hc-news-accent, #F0B429);
  color: var(--hc-news-primary, #064A26) !important;
  transform: translateY(-1px);
}
.hc-prod-card__cta {
  flex: 1 1 auto;
}

/* ===================== BLOCK B - Danh sách catalogue ===================== */
.hc-prod-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hc-news-line);
  font-size: 14px;
  color: var(--hc-news-muted);
}
.hc-prod-sort {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hc-prod-sort a {
  color: var(--hc-news-muted);
  transition: color .2s ease;
}
.hc-prod-sort a:hover,
.hc-prod-sort a.is-active {
  color: var(--hc-news-primary);
}
.hc-prod-sort a.is-active {
  font-weight: 700;
}
.hc-prod-sort__sep {
  color: var(--hc-news-line);
}

.hc-prod-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.hc-prod-row {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--hc-news-line);
  border-radius: 8px;
  transition: translate .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.hc-prod-row:hover {
  translate: 0 -3px;
  border-color: rgba(13, 124, 62, .22);
  box-shadow: 0 14px 30px rgba(13, 124, 62, .1);
}
.hc-prod-row__thumb {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  background: var(--hc-news-soft);
}
.hc-prod-row__thumb img,
.hc-prod-row__thumb .hc-news-thumb-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s ease;
}
.hc-prod-row:hover .hc-prod-row__thumb img {
  transform: scale(1.05);
}
.hc-prod-row__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--hc-news-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 20px);
}
.hc-prod-row__body {
  min-width: 0;
}
.hc-prod-row__title {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 600;
}
.hc-prod-row__title a {
  color: var(--hc-news-text);
  transition: color .2s ease;
}
.hc-prod-row__title a:hover {
  color: var(--hc-news-primary);
}
.hc-prod-row__excerpt {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.6;
  color: #6B7280;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hc-prod-row__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--hc-news-muted);
}
.hc-prod-row__cat {
  color: var(--hc-news-primary);
  font-weight: 600;
  text-transform: uppercase;
}
.hc-prod-row__action {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 150px;
}
.hc-prod-row__action .hc-prod-cta {
  width: 100%;
}

/* ===================== BLOCK C - Nổi bật + lưới ===================== */
.hc-prod-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}
.hc-prod-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--hc-news-line);
  border-radius: 8px;
  transition: box-shadow .3s ease, border-color .3s ease;
}
.hc-prod-hero:hover {
  border-color: rgba(13, 124, 62, .25);
  box-shadow: 0 18px 40px rgba(13, 124, 62, .14);
}
.hc-prod-hero__thumb {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--hc-news-soft);
}
.hc-prod-hero__thumb img,
.hc-prod-hero__thumb .hc-news-thumb-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.hc-prod-hero:hover .hc-prod-hero__thumb img {
  transform: scale(1.05);
}
.hc-prod-hero__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--hc-news-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.hc-prod-hero__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 24px 26px;
}
.hc-prod-hero__title {
  margin: 0;
  font-size: 26px;
  line-height: 1.3;
  font-weight: 700;
}
.hc-prod-hero__title a {
  color: var(--hc-news-text);
  transition: color .2s ease;
}
.hc-prod-hero__title a:hover {
  color: var(--hc-news-primary);
}
.hc-prod-hero__excerpt {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: #6B7280;
}
.hc-prod-hero__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}
.hc-prod-hero__date {
  font-size: 13px;
  color: var(--hc-news-muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hc-prod-grid--cols-4 { --hc-prod-cols: 3; }
  .hc-prod-feature { grid-template-columns: minmax(0, 1fr); }
  .hc-prod-row { grid-template-columns: 200px minmax(0, 1fr); }
  .hc-prod-row__action {
    grid-column: 1 / -1;
    align-items: flex-start;
  }
  .hc-prod-row__action .hc-prod-cta { width: auto; }
}
@media (max-width: 849px) {
  .hc-prod-grid--cols-3,
  .hc-prod-grid--cols-4 { --hc-prod-cols: 2; }
}
@media (max-width: 549px) {
  .hc-prod-grid--cols-2,
  .hc-prod-grid--cols-3,
  .hc-prod-grid--cols-4 { --hc-prod-cols: 1; }
  .hc-prod-card__title { min-height: 0; }
  .hc-prod-row {
    grid-template-columns: minmax(0, 1fr);
    padding: 14px;
  }
  .hc-prod-row__thumb { aspect-ratio: 16 / 9; }
  .hc-prod-row__action { min-width: 0; }
  .hc-prod-row__action .hc-prod-cta { width: 100%; }
  .hc-prod-hero__title { font-size: 20px; }
  .hc-prod-hero__body { padding: 18px 18px 20px; }
}

/* ==========================================================
   TRANG DEMO 3 KIỂU HIỂN THỊ
   ========================================================== */
.hc-demo-blocks-page {
  padding: 40px 0 70px;
}
.hc-demo-blocks__intro {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hc-news-line);
}
.hc-demo-blocks__title {
  margin: 0 0 12px;
  font-size: 38px;
  line-height: 1.2;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--hc-news-primary);
}
.hc-demo-blocks__desc {
  margin: 0;
  max-width: 780px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--hc-news-text);
}
.hc-demo-blocks__section {
  margin-bottom: 64px;
}
.hc-demo-blocks__heading {
  margin: 0 0 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--hc-news-primary);
  font-size: 26px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--hc-news-primary);
}
@media (max-width: 849px) {
  .hc-demo-blocks__title { font-size: 28px; }
  .hc-demo-blocks__heading { font-size: 22px; }
  .hc-demo-blocks__section { margin-bottom: 44px; }
}

/* ==========================================================
   BLOCK A: ĐÃ ĐƯỢC THIẾT KẾ 100% THEO CHUẨN products.html VÀ
   products.css (xem assets/css/products.css)
   ========================================================== */

/* ==========================================================
   TRANG CHI TIẾT (single) THEO MẪU product-detail.html
   ========================================================== */
.hc-pd-page {
  padding-bottom: 70px;
}
.hc-pd-sec1 {
  padding: 20px 0 50px;
}
.hc-pd-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}
.hc-pd-gallery {
  min-width: 0;
  max-width: 100%;
}

/* ---------- Gallery ---------- */
.hc-pd-gallery__main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  aspect-ratio: 16 / 11;
  padding: 8px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  background: #F8FAF9;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(6, 74, 38, 0.06);
}
.hc-pd-gallery__link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
  border-radius: 8px;
  overflow: hidden;
  background: #FFFFFF;
}
.hc-pd-gallery__img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
  transition: transform 0.35s ease;
}
.hc-pd-gallery__link:hover .hc-pd-gallery__img {
  transform: scale(1.025);
}
.hc-gallery-zoom-badge {
  position: absolute;
  bottom: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(6, 74, 38, 0.92);
  color: #FFD700;
  border: 1px solid rgba(240, 180, 41, 0.6);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: background 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  z-index: 10;
}
.hc-pd-gallery__link:hover .hc-gallery-zoom-badge {
  background: #064A26;
  transform: scale(1.05);
}
.hc-pd-gallery .hc-img-caption {
  margin-top: 10px;
  margin-bottom: 0;
}
.hc-pd-gallery__main .hc-news-thumb-placeholder {
  width: 100%;
  height: 100%;
}
.hc-pd-gallery__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}
.hc-pd-gallery__thumb {
  width: 84px;
  height: 68px;
  min-height: 0;
  padding: 6px;
  border: 1px solid var(--hc-news-line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.hc-pd-gallery__thumb:hover {
  border-color: rgba(13, 124, 62, .4);
}
.hc-pd-gallery__thumb.is-active {
  border-color: var(--hc-news-primary);
  box-shadow: 0 0 0 2px rgba(13, 124, 62, .15);
}
.hc-pd-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ---------- Thông tin ---------- */
.hc-pd-info {
  min-width: 0;
  max-width: 100%;
}
.hc-pd-info__title {
  margin: 0 0 20px;
  font-size: 30px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--hc-news-primary-dark);
}
.hc-pd-info__list {
  margin-bottom: 22px;
}
.hc-pd-info__item {
  display: flex;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--hc-news-line);
  font-size: 15px;
  line-height: 1.55;
}
.hc-pd-info__item b {
  flex: 0 0 150px;
  color: var(--hc-news-primary);
  font-weight: 600;
}
.hc-pd-info__content {
  flex: 1;
  color: var(--hc-news-text);
}
.hc-pd-info__content a {
  color: var(--hc-news-text);
}
.hc-pd-info__content a:hover {
  color: var(--hc-news-primary);
}
.hc-pd-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}
.hc-pd-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border: 1px solid var(--hc-news-primary);
  border-radius: 8px;
  background: #fff;
  color: var(--hc-news-primary);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .02em;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.hc-pd-btn svg {
  width: 18px;
  height: 18px;
}
.hc-pd-btn:hover {
  background: var(--hc-news-primary);
  color: #fff;
}
.hc-pd-btn--primary {
  background: var(--hc-news-primary);
  color: #fff;
}
.hc-pd-btn--primary:hover {
  background: var(--hc-news-hover);
  border-color: var(--hc-news-hover);
}
.hc-pd-info__mota {
  margin-bottom: 22px;
  font-size: 15px;
  line-height: 1.7;
  color: #374151;
}
.hc-pd-info__mota p:last-child {
  margin-bottom: 0;
}
.hc-pd-share {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hc-pd-share a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: #F0FFF4;
  border: 1.5px solid #0D7C3E;
  border-radius: 50%;
  color: #064A26 !important;
  box-shadow: 0 2px 6px rgba(6, 74, 38, .08);
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.hc-pd-share a:hover,
.hc-pd-share a.is-fb:hover,
.hc-pd-share a.is-zalo:hover,
.hc-pd-share a.is-messenger:hover,
.hc-pd-share a.is-yt:hover,
.hc-pd-share a.is-x:hover,
.hc-pd-share a.is-linkedin:hover {
  background: #064A26 !important;
  border-color: #064A26 !important;
  color: #F0B429 !important;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 14px rgba(6, 74, 38, .22);
}
.hc-pd-share svg {
  width: 17px;
  height: 17px;
}
.hc-pd-share a.is-zalo svg {
  width: 24px;
  height: 24px;
}

/* ---------- Tab thông tin ---------- */
.hc-pd-heading {
  margin: 0 0 22px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--hc-news-primary);
  font-size: 26px;
  line-height: 1.3;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--hc-news-primary);
}
.hc-pd-tabs__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  margin: 0 0 22px;
  padding: 0 0 14px;
  list-style: none;
  border-bottom: 1px solid var(--hc-news-line);
}
.hc-pd-tabs__nav li {
  position: relative;
  padding: 6px 0;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--hc-news-muted);
  transition: color .2s ease;
}
.hc-pd-tabs__nav li::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -15px;
  width: 0;
  height: 2px;
  background: var(--hc-news-primary);
  transition: width .25s ease;
}
.hc-pd-tabs__nav li:hover,
.hc-pd-tabs__nav li.is-active {
  color: var(--hc-news-primary);
}
.hc-pd-tabs__nav li.is-active::after {
  width: 100%;
}
.hc-pd-panel {
  display: none;
}
.hc-pd-panel.is-active {
  display: block;
}
.hc-pd-panel .entry-content {
  font-size: 15px;
  line-height: 1.75;
  color: var(--hc-news-text);
}
.hc-pd-specs {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.hc-pd-specs td {
  padding: 11px 16px;
  border: 1px solid var(--hc-news-line);
  line-height: 1.5;
}
.hc-pd-specs td:first-child {
  width: 45%;
  background: var(--hc-news-soft);
  color: var(--hc-news-primary);
}
.hc-pd-specs tr:nth-child(even) td:last-child {
  background: #F8FAF9;
}

/* ---------- Sản phẩm liên quan ---------- */
.hc-pd-related {
  padding-top: 50px;
}

@media (max-width: 849px) {
  .hc-pd-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .hc-pd-gallery__main {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 11;
    min-height: unset;
  }
  .hc-pd-info__title { font-size: 24px; }
  .hc-pd-info__item { flex-direction: column; gap: 4px; }
  .hc-pd-info__item b { flex-basis: auto; }
  .hc-pd-heading { font-size: 22px; }
  .hc-prod-wrap--cols-4 { --hc-prod-cols: 2; }
}
@media (max-width: 549px) {
  .hc-pd-gallery__main {
    aspect-ratio: 16 / 10;
    min-height: unset;
  }
  .hc-prod-wrap--cols-4 { --hc-prod-cols: 1; }
  .hc-pd-links { flex-direction: column; }
  .hc-pd-btn { width: 100%; justify-content: center; }
}

/* ==========================================================================
   BỐ CỤC & THẺ DỰ ÁN NÂNG CẤP CHUẨN 3 CỘT (THEO ẢNH MẪU THIẾT KẾ)
   Áp dụng cho trang /du-an/ và các block hiển thị dự án
   ========================================================================== */
.hc-projects-archive-page {
  padding-bottom: 60px;
}

.hc-projects-archive-block {
  margin-top: 10px;
  margin-bottom: 50px;
}

/* Lưới Dự án 3 cột rộng rãi không sidebar */
.hc-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 26px;
  align-items: stretch;
}

/* Thẻ Dự án chi tiết (.hc-project-card) */
.hc-project-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
  position: relative;
  height: 100%;
}

.hc-project-card:hover {
  transform: translateY(-5px);
  border-color: #0D7C3E; /* Xanh lá chủ đạo Primary Green từ bảng màu */
  box-shadow: 0 12px 28px rgba(13, 124, 62, 0.12);
}

/* Khung ảnh thumbnail tỉ lệ 16:10 */
.hc-project-card__thumb-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background-color: #F8FAF9;
  width: 100%;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

/* Mốc thời gian neo góc trên bên phải thumbnail dự án - Màu sắc nhận diện nổi bật (Vàng Accent Gold / Xanh Primary Green) */
.hc-project-card__date-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: var(--hc-project-date-bg, #F0B429);
  color: var(--hc-project-date-color, #04381C);
  font-size: 13px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  pointer-events: none;
  line-height: 1.4;
  white-space: nowrap;
  letter-spacing: 0.25px;
  transition: all 0.25s ease;
}

/* Biến thể màu Vàng nhận diện thương hiệu Huy Cường (Đồng bộ với nút YÊU CẦU BÁO GIÁ) */
.hc-project-card__date-badge--gold,
[data-project-date-theme="gold"] .hc-project-card__date-badge {
  background: #F0B429;
  color: #04381C;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* Biến thể màu Xanh thương hiệu Huy Cường (Primary Green) */
.hc-project-card__date-badge--green,
[data-project-date-theme="green"] .hc-project-card__date-badge {
  background: #0D7C3E;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

.hc-project-card__thumb {
  display: block;
  width: 100%;
  height: 100%;
}

.hc-project-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.hc-project-card:hover .hc-project-card__thumb img {
  transform: scale(1.04);
}

/* Thân thẻ (.hc-project-card__body) */
.hc-project-card__body {
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Dòng nhãn danh mục có vạch xanh thương hiệu đứng trước tiêu đề */
.hc-project-card__category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #0D7C3E;
  margin-bottom: 8px;
}

.hc-project-card__category .cat-bar {
  display: inline-block;
  width: 3px;
  height: 12px;
  background-color: #0D7C3E;
  border-radius: 8px;
  flex-shrink: 0;
}

/* Tiêu đề dự án: BỎ HOÀN TOÀN border-left, cho nhỏ lại và show hết toàn bộ */
.hc-project-card__title {
  position: relative;
  padding-left: 0;
  border-left: none;
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.42;
  margin: 0 0 14px 0;
  text-transform: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.84em;
  word-break: break-word;
  overflow-wrap: break-word;
}

.hc-project-card__title a {
  color: #111827;
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.hc-project-card__title a:hover,
.hc-project-card:hover .hc-project-card__title a {
  color: #0D7C3E;
}

/* Khối thông số kỹ thuật (Địa điểm cùng hàng, Thiết bị xuống hàng) */
.hc-project-card__specs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.hc-project-card__spec-item {
  font-size: 13.5px;
  line-height: 1.5;
}

/* Địa điểm: viết cùng hàng */
.hc-project-card__spec-item--inline {
  display: block;
}

.hc-project-card__spec-item--inline .spec-label {
  font-weight: 700;
  color: #111827;
  margin-right: 5px;
}

.hc-project-card__spec-item--inline .spec-value {
  color: #4B5563;
  font-weight: 400;
}

/* Thiết bị / Hạng mục: dài cần xuống hàng */
.hc-project-card__spec-item--stacked {
  display: block;
}

.hc-project-card__spec-item--stacked .spec-label {
  display: block;
  font-weight: 700;
  color: #111827;
  margin-bottom: 2px;
}

.hc-project-card__spec-item--stacked .spec-value {
  display: block;
  color: #4B5563;
  font-weight: 400;
}

/* Đoạn tóm tắt dự án có đường line trên ngăn cách với specs */
.hc-project-card__excerpt {
  font-size: 13px;
  line-height: 1.55;
  color: #4B5563;
  margin: 14px 0 0 0;
  padding-top: 14px;
  padding-bottom:14px;
  border-top: 1px solid #ECEFED;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Phần chân thẻ: LUÔN neo ở cuối card chuẩn UX/UI */
.hc-project-card__footer {
  margin-top: auto !important;
  padding-top: 14px;
  border-top: 1px solid #ECEFED;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.hc-project-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent !important;
  color: #0D7C3E;
  font-size: 14px;
  font-weight: 700;
  padding: 0 !important;
  border: none;
  border-radius: 0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.hc-project-card__more .arrow-icon {
  color: #0D7C3E;
  stroke: #0D7C3E;
  transition: transform 0.25s ease, stroke 0.2s ease, color 0.2s ease;
}

.hc-project-card__more:hover,
.hc-project-card:hover .hc-project-card__more {
  background: transparent !important;
  color: #064A26;
}

.hc-project-card__more:hover .arrow-icon,
.hc-project-card:hover .hc-project-card__more .arrow-icon {
  color: #064A26;
  stroke: #064A26;
  transform: translateX(4px);
}

/* Container nút Xem Thêm ở cuối block */
.home_news_bottom_actions {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  width: 100%;
}

.home_news_bottom_actions .button_style {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 28px;
  border-radius: 9999px;
  border: 1.5px solid #0D7C3E;
  background: #FFFFFF;
  color: #0D7C3E;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.25s ease;
  text-decoration: none;
}

.home_news_bottom_actions .button_style:hover {
  background: #0D7C3E;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(13, 124, 62, 0.25);
}

.home_news_bottom_actions .button_style svg {
  stroke: currentColor;
  transition: transform 0.25s ease;
}

.home_news_bottom_actions .button_style:hover svg {
  transform: translateX(4px);
}

/* ==========================================================================
   RESPONSIVE CHO LƯỚI VÀ THẺ DỰ ÁN
   ========================================================================== */
@media (max-width: 1024px) {
  .hc-projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .hc-projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .hc-project-card__body {
    padding: 18px 18px 16px;
  }
  .hc-project-card__title {
    font-size: 1rem;
    min-height: auto;
  }
}

/* ==========================================================================
 * THÔNG SỐ KỸ THUẬT VÀ LIGHTBOX PHÓNG TO HÌNH ẢNH TOÀN MÀN HÌNH
 * ========================================================================== */
.hc-pd-spec-val {
  color: #064A26;
  font-weight: 700;
}
.hc-pd-info__content--capacity {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}

.hc-pd-spec-val.hc-pd-spec-val--cap {
  font-size: 15px;
  background: #E8F5E9;
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid rgba(13, 124, 62, 0.22);
  display: inline-flex;
  align-items: center;
  line-height: 1.3;
}

body.hc-lightbox-open {
  overflow: hidden !important;
}

.hc-lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.hc-lightbox-modal.is-active {
  opacity: 1;
  visibility: visible;
}

.hc-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 20, 12, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
}

.hc-lightbox-container {
  position: relative;
  z-index: 2;
  max-width: 94vw;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.hc-lightbox-close {
  position: fixed;
  top: 24px;
  right: 28px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(10, 25, 16, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
  outline: none;
}

.hc-lightbox-close svg {
  width: 28px;
  height: 28px;
  stroke-width: 2.6;
  transition: transform 0.25s ease, stroke 0.25s ease;
}

.hc-lightbox-close:hover {
  background: #064A26;
  border-color: #F0B429;
  color: #FFD700;
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(6, 74, 38, 0.6);
}

.hc-lightbox-close:hover svg {
  transform: rotate(90deg);
  stroke: #FFD700;
}

@media (max-width: 768px) {
  .hc-lightbox-close {
    top: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
  }
  .hc-lightbox-close svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.5;
  }
}

.hc-lightbox-nav {
  display: none !important;
}

.hc-lightbox-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
}

.hc-lightbox-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5);
  background: #000;
}

.hc-lightbox-figure img {
  display: block;
  max-width: 90vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  animation: hc-lightbox-zoom 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes hc-lightbox-zoom {
  from {
    transform: scale(0.94);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.hc-lightbox-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  max-width: 90vw;
  margin-top: 14px;
  padding: 10px 24px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-sizing: border-box;
}

.hc-lightbox-caption {
  font-size: 14.5px;
  font-style: italic;
  color: #FFFFFF;
  line-height: 1.45;
  text-align: center;
  flex: 1;
}

.hc-lightbox-counter {
  display: none !important;
}

/* Justify project body paragraphs and lists at every screen size. */
.hc-news-single-page--project .hc-news-single__content,
.hc-news-single-page--project .hc-news-single__content p,
.hc-news-single-page--project .hc-news-single__content li {
  text-align: justify !important;
}

/* Short project facts should use natural spacing rather than stretched justified lines. */
.hc-news-single-page--project .hc-news-single__content .project-specs-summary,
.hc-news-single-page--project .hc-news-single__content .project-specs-summary p {
  text-align: left !important;
  word-spacing: normal;
  letter-spacing: normal;
}

/* Keep breadcrumb layout independent from legacy menu positioning. */
.hc-news-single-topbar .hc-news-breadcrumb__nav,
.hc-news-single-topbar .hc-news-breadcrumb__nav ul.hc-news-breadcrumb__list {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  height: auto !important;
  margin: 0 !important;
}

.hc-news-single-topbar .hc-news-breadcrumb__nav {
  display: flex !important;
  width: 100% !important;
  min-width: 0;
}

.hc-news-single-topbar .hc-news-breadcrumb__nav ul.hc-news-breadcrumb__list {
  display: flex !important;
  align-items: center;
  flex-wrap: nowrap !important;
  width: 100% !important;
  min-width: 0;
  padding: 0 !important;
  line-height: 1.6;
}

.hc-news-single-topbar .hc-news-breadcrumb__list li.list_br,
.hc-news-single-topbar .hc-news-breadcrumb__list .divider {
  flex: 0 0 auto;
  white-space: nowrap;
}

.hc-news-single-topbar .hc-news-breadcrumb__list li.title_single.current {
  display: block !important;
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
  line-height: 1.6;
}

@media (max-width: 1366px) {
  html body .hc-news-single-page--project .hc-news-single-topbar {
    padding: 14px 0 !important;
  }

  .hc-news-single-page--project .hc-news-single-topbar__inner {
    min-width: 0;
    gap: 12px !important;
  }

  .hc-news-single-page--project .hc-news-single-topbar .hc-news-back-link {
    min-height: 44px;
    max-width: 100%;
    padding: 8px 14px !important;
    line-height: 1.5;
  }
}
