/* MVC additions for the database-backed ASUS public pages. */
.field-validation-error {
  display: block;
  margin-top: 4px;
  color: var(--brand-red);
  font-size: 12px;
}

.field-validation-valid {
  display: none;
}

.form-control.input-validation-error {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(215, 30, 38, 0.12);
}

.public-empty-state,
.public-content-card {
  padding: 28px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
}

.public-content-card p {
  margin: 0 0 14px;
  white-space: pre-line;
}

.public-content-card p:last-child {
  margin-bottom: 0;
}

.service-card--image,
.project-catalog-card,
.news-catalog-card {
  min-height: 100%;
}

.service-card-link,
.news-card-link {
  color: inherit;
  cursor: pointer;
  pointer-events: auto;
  text-decoration: none;
}

.service-card-link:focus-visible,
.news-card-link:focus-visible,
.project-catalog-card:focus-visible,
.project-card:focus-visible,
.news-catalog-card:focus-visible {
  outline: 2px solid var(--brand-red);
  outline-offset: 3px;
}

.service-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--thumb-bg);
}

.service-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.public-detail-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.8fr);
  gap: 24px;
  align-items: start;
}

.public-detail-aside {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.public-detail-aside a {
  color: var(--link-more);
}

.public-detail-aside a:hover {
  color: var(--link-more-hover);
}

.public-detail-image {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
}

.public-map {
  display: block;
  width: 100%;
  min-height: 320px;
  margin-top: 24px;
  border: 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.public-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

@media (max-width: 800px) {
  .public-detail-columns {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   HOMEPAGE SPECIALIZED SECTIONS (Services, Projects, Editorial News)
   ========================================================================== */

/* Enhanced Section Header */
.section-header-pro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.section-eyebrow {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--brand-red, #d71e26);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-eyebrow::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 2px;
  background-color: var(--brand-red, #d71e26);
  border-radius: 2px;
}

.section-title-pro {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.25;
}

.section-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  border: 1px solid var(--card-border);
  padding: 8px 18px;
  border-radius: 24px;
  background: var(--card-bg);
  transition: all 0.25s ease;
  text-decoration: none;
}

.section-more-btn:hover {
  border-color: var(--brand-red, #d71e26);
  color: var(--brand-red, #d71e26);
  background: rgba(215, 30, 38, 0.06);
  transform: translateX(2px);
}

.section-more-btn svg {
  transition: transform 0.2s ease;
}

.section-more-btn:hover svg {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   1. SERVICES SECTION (High-Tech Architectural Engineering Cards)
   -------------------------------------------------------------------------- */
.services-grid-pro {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.service-card-pro {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  height: 100%;
  box-shadow: var(--shadow-card);
}

.service-card-pro:hover {
  transform: translateY(-6px);
  border-color: var(--brand-red, #d71e26);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

.service-card-pro__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--thumb-bg);
}

.service-card-pro__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.2, 0, 0.2, 1);
}

.service-card-pro:hover .service-card-pro__thumb img {
  transform: scale(1.06);
}

.service-card-pro__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(4, 32, 82, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 3px 9px;
  border-radius: 4px;
  text-transform: uppercase;
}

.service-card-pro__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card-pro__title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 10px;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.service-card-pro:hover .service-card-pro__title {
  color: var(--brand-red, #d71e26);
}

.service-card-pro__desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.service-card-pro__features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.service-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  background: var(--section-alt-bg);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.service-card-pro__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
  margin-top: auto;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand-red, #d71e26);
}

.service-card-pro__footer svg {
  transition: transform 0.2s ease;
}

.service-card-pro:hover .service-card-pro__footer svg {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   2. PROJECTS SECTION (Architectural Portfolio Showcase)
   -------------------------------------------------------------------------- */
.portfolio-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.portfolio-filter-btn {
  padding: 6px 16px;
  border-radius: 24px;
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.portfolio-filter-btn:hover {
  border-color: var(--brand-red, #d71e26);
  color: var(--brand-red, #d71e26);
  background: rgba(215, 30, 38, 0.05);
}

.portfolio-filter-btn.active {
  background: var(--brand-red, #d71e26);
  color: #fff;
  border-color: var(--brand-red, #d71e26);
  box-shadow: 0 4px 12px rgba(215, 30, 38, 0.35);
}

.projects-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-portfolio-card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: var(--shadow-card);
  position: relative;
  height: 100%;
}

.project-portfolio-card:hover {
  transform: translateY(-6px);
  border-color: var(--card-border-hover);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
}

.project-portfolio-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--thumb-bg);
}

.project-portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.2, 0, 0.2, 1);
}

.project-portfolio-card:hover .project-portfolio-thumb img {
  transform: scale(1.05);
}

.project-badge-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(4, 32, 82, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #93c5fd;
  border: 1px solid rgba(147, 197, 253, 0.3);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  z-index: 2;
}

.project-badge-year {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #f1f5f9;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 4px;
  z-index: 2;
}

.project-portfolio-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-portfolio-meta {
  font-size: 12px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.project-portfolio-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.project-portfolio-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin: 0 0 10px;
  transition: color 0.2s ease;
}

.project-portfolio-card:hover .project-portfolio-title {
  color: var(--brand-red, #d71e26);
}

.project-portfolio-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-portfolio-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
  margin-top: auto;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--link-more);
}

.project-portfolio-footer svg {
  transition: transform 0.2s ease;
}

.project-portfolio-card:hover .project-portfolio-footer svg {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   3. NEWS SECTION (Báo Mới / VnExpress Editorial Portal Layout)
   -------------------------------------------------------------------------- */
.news-editorial-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 26px;
  align-items: stretch;
}

/* Left Column: Featured Headline Story */
.news-headline-card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: var(--shadow-card);
}

.news-headline-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-red, #d71e26);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

.news-headline-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9.5;
  overflow: hidden;
  background: var(--thumb-bg);
}

.news-headline-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.news-headline-card:hover .news-headline-thumb img {
  transform: scale(1.05);
}

.news-spotlight-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--brand-red, #d71e26);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 11px;
  border-radius: 4px;
  box-shadow: 0 3px 10px rgba(215, 30, 38, 0.45);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.news-headline-body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.news-category-tag {
  background: rgba(215, 30, 38, 0.1);
  color: var(--brand-red, #d71e26);
  font-weight: 700;
  font-size: 11.5px;
  padding: 3px 9px;
  border-radius: 4px;
  display: inline-block;
}

.news-headline-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.4;
  margin: 0 0 12px;
  transition: color 0.2s ease;
}

.news-headline-card:hover .news-headline-title {
  color: var(--brand-red, #d71e26);
}

.news-headline-excerpt {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
}

.news-headline-more {
  margin-top: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-red, #d71e26);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.news-headline-more svg {
  transition: transform 0.2s ease;
}

.news-headline-card:hover .news-headline-more svg {
  transform: translateX(4px);
}

/* Right Column: Compact News Stream */
.news-compact-list {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: var(--shadow-card);
  height: 100%;
}

.news-compact-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px 6px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.2s ease, transform 0.2s ease;
  border-bottom: 1px solid var(--border-soft);
}

.news-compact-item:last-child {
  border-bottom: none;
}

.news-compact-item:hover {
  background-color: var(--section-alt-bg);
  transform: translateX(3px);
}

.news-compact-thumb {
  position: relative;
  width: 110px;
  height: 74px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--thumb-bg);
  flex-shrink: 0;
}

.news-compact-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-compact-item:hover .news-compact-thumb img {
  transform: scale(1.05);
}

.news-compact-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.news-compact-meta {
  font-size: 11px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.news-compact-meta .news-cat-mini {
  color: var(--brand-red, #d71e26);
  font-weight: 700;
}

.news-compact-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.38;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.news-compact-item:hover .news-compact-title {
  color: var(--brand-red, #d71e26);
}

/* --------------------------------------------------------------------------
   4. DETAIL PAGE POLISH (Products/Details.cshtml)
   -------------------------------------------------------------------------- */
.project-detail-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 20px;
  background: var(--section-alt-bg);
  border: 1px solid var(--card-border);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.related-project-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border-soft);
  background: var(--card-bg);
  transition: all 0.2s ease;
  margin-bottom: 10px;
}

.related-project-item:hover {
  border-color: var(--brand-red, #d71e26);
  transform: translateX(3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.related-project-thumb {
  width: 68px;
  height: 48px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--thumb-bg);
}

.related-project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-project-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.related-project-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.related-project-item:hover .related-project-title {
  color: var(--brand-red, #d71e26);
}

.related-project-meta {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 3px;
}

/* --------------------------------------------------------------------------
   5. RESPONSIVE BREAKPOINTS FOR HOMEPAGE
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .services-grid-pro {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

@media (max-width: 991px) {
  .projects-portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .news-editorial-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .services-grid-pro {
    grid-template-columns: 1fr;
  }

  .projects-portfolio-grid {
    grid-template-columns: 1fr;
  }

  .news-compact-item {
    grid-template-columns: 95px 1fr;
    gap: 10px;
  }

  .news-compact-thumb {
    width: 95px;
    height: 65px;
  }

  .section-header-pro {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   BÁO MỚI / VNEXPRESS EDITORIAL NEWS DETAILS
   ========================================================================== */

.news-editorial-page {
  padding: 24px 0 60px 0;
}

/* Breadcrumb */
.news-editorial-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.news-editorial-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.news-editorial-breadcrumb a:hover {
  color: var(--brand-red);
}

.news-breadcrumb-sep {
  opacity: 0.5;
  font-size: 11px;
}

.news-breadcrumb-current {
  color: var(--text-secondary) !important;
  font-weight: 500;
}

/* 2-Column Grid */
.news-editorial-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 44px;
  align-items: start;
}

/* Article Column */
.news-editorial-article {
  max-width: 820px;
}

/* Kicker */
.news-editorial-kicker-wrap {
  margin-bottom: 12px;
}

.news-editorial-kicker {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  text-decoration: none;
  transition: color 0.15s ease;
}

[data-theme="dark"] .news-editorial-kicker {
  color: #94a3b8;
}

.news-editorial-kicker:hover {
  color: var(--brand-red);
}

/* Main Headline */
.news-editorial-title {
  font-family: "Merriweather", -apple-system-ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: clamp(26px, 2.8vw, 34px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin: 0 0 14px 0;
}

/* Byline */
.news-editorial-byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-soft);
}

.news-editorial-author {
  font-weight: 700;
  color: var(--text-primary);
}

.news-editorial-dot {
  color: var(--text-muted);
  opacity: 0.6;
}

.news-editorial-time {
  color: var(--text-secondary);
}

.news-editorial-views {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-muted);
  font-size: 12.5px;
}

.news-editorial-views svg {
  opacity: 0.7;
}

/* Sapo / Lead Paragraph */
.news-editorial-sapo {
  font-size: 17.5px;
  font-weight: 600;
  line-height: 1.62;
  color: var(--text-primary);
  margin-bottom: 24px;
  letter-spacing: -0.005em;
}

/* Featured Image & Caption */
.news-editorial-figure {
  margin: 0 0 28px 0;
}

.news-editorial-img-box {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--navy-thumb);
  box-shadow: var(--shadow-card);
}

.news-editorial-main-img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

.news-editorial-caption {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-muted);
  font-style: italic;
  padding: 10px 4px 0 4px;
  text-align: center;
}

/* Body Content */
.news-editorial-body {
  font-size: 17px;
  line-height: 1.82;
  color: var(--text-secondary);
}

.news-editorial-body p {
  margin-bottom: 20px;
}

/* Signoff & Share Footer Bar */
.news-editorial-footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--border-card);
  border-bottom: 1px solid var(--border-card);
  margin: 32px 0 24px 0;
}

.news-editorial-signoff {
  font-size: 14px;
}

.news-editorial-signer-name {
  font-weight: 700;
  color: var(--text-primary);
}

.news-editorial-source-tag {
  color: var(--text-muted);
  margin-left: 6px;
  font-size: 13.5px;
}

.news-editorial-share-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.share-group-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.btn-editorial-share {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid var(--border-soft);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-editorial-share:hover {
  border-color: var(--brand-red);
  color: var(--white);
  background: var(--brand-red);
}

.btn-editorial-share--fb:hover {
  border-color: #1877f2;
  background: #1877f2;
  color: #fff;
}

.news-editorial-back-wrap {
  margin-top: 20px;
}

.news-editorial-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-red);
  text-decoration: none;
  transition: gap 0.2s ease;
}

.news-editorial-back-link:hover {
  gap: 12px;
  color: var(--brand-red-hover);
}

/* Sidebar Styles (Báo Mới style) */
.news-editorial-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.news-sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.news-sidebar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-soft);
  margin-bottom: 16px;
}

.news-sidebar-accent {
  width: 4px;
  height: 18px;
  background: var(--brand-red);
  border-radius: 2px;
}

.news-sidebar-heading {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin: 0;
  text-transform: uppercase;
}

.news-sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.news-sidebar-item {
  display: flex;
  gap: 12px;
  text-decoration: none;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-soft);
  transition: transform 0.2s ease;
}

.news-sidebar-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.news-sidebar-thumb {
  position: relative;
  width: 100px;
  height: 68px;
  flex-shrink: 0;
  border-radius: 5px;
  overflow: hidden;
  background: var(--navy-thumb);
}

.news-sidebar-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-sidebar-index {
  position: absolute;
  top: 4px;
  left: 4px;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 3px;
  line-height: 1.2;
}

.news-sidebar-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.news-sidebar-cat {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand-red);
  margin-bottom: 2px;
  letter-spacing: 0.03em;
}

.news-sidebar-item-title {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
  margin: 0 0 4px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.news-sidebar-item:hover .news-sidebar-item-title {
  color: var(--brand-red);
}

.news-sidebar-item:hover .news-sidebar-thumb img {
  transform: scale(1.08);
}

.news-sidebar-time {
  font-size: 11px;
  color: var(--text-muted);
}

.news-sidebar-empty {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  padding: 12px 0;
}

/* Sidebar Consultation CTA */
.news-sidebar-cta-card {
  background: linear-gradient(145deg, var(--navy-800), var(--navy-900));
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  color: var(--white);
}

[data-theme="light"] .news-sidebar-cta-card {
  background: linear-gradient(145deg, #0A3D83, #042052);
}

.cta-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(215, 30, 38, 0.18);
  border: 1px solid rgba(215, 30, 38, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px auto;
  color: var(--brand-red);
}

.cta-card-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: var(--white);
}

.cta-card-text {
  font-size: 13px;
  line-height: 1.55;
  color: var(--light-200);
  margin: 0 0 16px 0;
}

.cta-card-btn {
  display: block;
  width: 100%;
  padding: 10px 16px;
  background: var(--brand-red);
  color: var(--white);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-cta);
}

.cta-card-btn:hover {
  background: var(--brand-red-hover);
  transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 960px) {
  .news-editorial-layout-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .news-editorial-sidebar {
    position: static;
  }
}

/* Public photos stay on the page: no drag-out, no long-press save, no direct Save image target. */
html,
body {
  -webkit-touch-callout: none;
}

img,
picture,
canvas,
video {
  -webkit-user-drag: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  -webkit-touch-callout: none !important;
  pointer-events: none !important;
}
