/* Single blog post — 2-column layout + sidebar (DNF-style). */

.hc-single-post {
  /* Bù header position:fixed — tránh category/title bị che */
  padding: calc(var(--hc-header-height) + var(--hc-admin-bar-offset, 0px) + 40px) 0 72px;
  background: var(--hc-bg);
}

.hc-single-post__inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.hc-single-post__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 36px;
  align-items: start;
}

.hc-single-post__main {
  min-width: 0;
}

.hc-single-post__header {
  text-align: left;
  margin: 0 0 32px;
  max-width: none;
}

.hc-single-post__category {
  display: inline-block;
  margin: 0 0 14px;
  border-radius: 999px;
  background: rgba(21, 101, 192, 0.1);
  color: var(--hc-blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.3;
}

.hc-single-post__title {
  margin: 0 0 12px;
  color: var(--hc-text);
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  font-weight: 900;
  line-height: 1.28;
  text-transform: uppercase;
}

.hc-single-post__meta {
  margin: 0;
  color: var(--hc-text-muted);
  font-size: 0.9rem;
}

.hc-single-post__meta time {
  color: var(--hc-text);
  font-weight: 600;
}

.hc-single-post__content {
  margin: 0;
  color: var(--hc-text);
  font-size: 1rem;
  line-height: 1.75;
}

.hc-single-post__content img,
.hc-single-post__content .wp-block-image img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.5rem 0;
  border-radius: var(--hc-radius-sm);
}

.hc-single-post__content .aligncenter {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hc-single-post__content figure {
  margin: 1.5rem 0;
}

.hc-single-post__content > .elementor {
  width: 100%;
}

.hc-single-post__content > .elementor > .e-con,
.hc-single-post__content > .elementor > .elementor-section {
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.hc-single-post__content .elementor-widget-text-editor,
.hc-single-post__content .elementor-widget-theme-post-content {
  text-align: left;
}

.hc-single-post__tags {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--hc-border);
  color: var(--hc-text-muted);
  font-size: 0.9rem;
}

/* Sidebar */
.hc-single-post__sidebar.news-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 96px;
}

.hc-single-post__sidebar .sidebar-widget {
  background: #fff;
  border-radius: var(--hc-radius);
  padding: 22px;
  border: 1.5px solid var(--hc-border);
}

.hc-single-post__sidebar .sidebar-widget h3 {
  font-size: 0.92rem;
  font-weight: 800;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--hc-red-light);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--hc-blue);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.hc-single-post__sidebar .sidebar-widget h3 i {
}

.hc-single-post__sidebar .sidebar-widget-desc {
  font-size: 0.85rem;
margin: 0;
  line-height: 1.6;
}

.hc-single-post__sidebar .sidebar-search {
  position: relative;
}

.hc-single-post__sidebar .sidebar-search input {
  width: 100%;
  padding: 12px 44px 12px 14px;
  border: 1.5px solid var(--hc-border);
  border-radius: var(--hc-radius-sm);
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  box-sizing: border-box;
}

.hc-single-post__sidebar .sidebar-search input:focus {
  border-color: var(--hc-red);
}

.hc-single-post__sidebar .sidebar-search button {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  background: none;
  border: none;
  cursor: pointer;
}

.hc-single-post__sidebar .hc-sp-post-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hc-single-post__sidebar .hc-sp-post-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.hc-single-post__sidebar .hc-sp-post-item:hover h4 {
}

.hc-single-post__sidebar .hc-sp-post-item__thumb {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.hc-single-post__sidebar .hc-sp-sidebar-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hc-single-post__sidebar .hc-sp-sidebar-thumb--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 1.6rem;
}

.hc-single-post__sidebar .hc-sp-post-item h4 {
  margin: 0 0 4px;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--hc-text);
  transition: color var(--hc-transition);
}

.hc-single-post__sidebar .hc-sp-post-item span {
  font-size: 0.78rem;
  color: var(--hc-text-muted);
}

@media (max-width: 991px) {
  .hc-single-post__layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hc-single-post__sidebar.news-sidebar {
    position: static;
  }
}

@media (max-width: 767px) {
  .hc-single-post {
    padding: calc(var(--hc-header-height) + var(--hc-admin-bar-offset, 0px) + 28px) 0 56px;
  }

  .hc-single-post__inner {
    padding: 0 16px;
  }

  .hc-single-post__header {
    margin-bottom: 24px;
  }
}
