/*
Theme Name: Blocksy Child Song Anh
Template: blocksy
Description: Giao dien con cua Blocksy cho mohinhkientruc.org (mau Stitch lan 4).
Version: 0.3.11
Text Domain: blocksy-child-songanh
*/

/* ==========================================================================
   1. BIẾN TOÀN CỤC & THIẾT LẬP NỀN TẢNG (THEME TOKENS)
   ========================================================================== */
:root {
  --sa-bg: #121212;
  --sa-bg-surface: #161616;
  --sa-bg-surface-alt: #1A1A1A;
  --sa-bg-card: #222222;
  --sa-border: #2E2E2E;
  --sa-border-subtle: rgba(255, 255, 255, 0.08);

  --sa-text: #F5F5F5;
  --sa-text-muted: #A3A3A3;
  --sa-text-dark: #121212;

  --sa-gold: #D4A017;
  --sa-gold-hover: #E6B422;
  --sa-gold-glow: rgba(212, 160, 23, 0.4);
  --sa-gold-dim: rgba(212, 160, 23, 0.15);

  --sa-font-body: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --sa-font-accent: 'Mulish', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --sa-header-height: 80px;
  --sa-header-compact-height: 60px;
  --sa-bottom-bar-height: 56px;
  --sa-max-width: 1280px;
}

/* Blocksy CSS variable overrides */
:root {
  --theme-palette-color-1: #D4A017;
  --theme-palette-color-2: #E6B422;
  --theme-palette-color-3: #F5F5F5;
  --theme-palette-color-4: #A3A3A3;
  --theme-palette-color-5: #121212;
  --theme-palette-color-6: #161616;
  --theme-palette-color-7: #1A1A1A;
  --theme-palette-color-8: #222222;
}

html, body {
  background-color: var(--sa-bg);
  color: var(--sa-text);
  font-family: var(--sa-font-body);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  overflow-x: clip;
  max-width: 100vw;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after {
  box-sizing: inherit;
}

::selection {
  background-color: var(--sa-gold);
  color: var(--sa-text-dark);
}

a {
  color: var(--sa-gold);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

a:hover {
  color: var(--sa-gold-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   2. BỐ CỤC KHUNG CHỨA (CONTAINERS & LAYOUT)
   ========================================================================== */
.sa-container {
  width: 100%;
  max-width: var(--sa-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 768px) {
  .sa-container {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

@media (min-width: 1200px) {
  .sa-container {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

/* Khoảng đệm an toàn dưới cùng (Safe Area Bottom Padding) */
#main-container,
.sa-main-content,
main#main {
  background-color: var(--sa-bg);
  color: var(--sa-text);
  min-height: 100vh;
  padding-bottom: 7rem; /* Mobile safe area tránh đè thanh đáy */
}

@media (min-width: 1024px) {
  #main-container,
  .sa-main-content,
  main#main {
    padding-bottom: 2rem;
  }
}

/* ==========================================================================
   3. TYPOGRAPHY & PHÁ KHUNG LẦN 4
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--sa-font-body);
  font-weight: 900;
  color: var(--sa-text);
  line-height: 1.15;
  margin-top: 0;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.sa-label {
  font-family: var(--sa-font-accent);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--sa-gold);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.sa-label::before {
  content: '';
  display: inline-block;
  width: 1.5rem;
  height: 2px;
  background-color: var(--sa-gold);
}

/* Chữ khổng lồ viền mảnh trôi sau nền (Giant Stroke Backdrop Text) */
.giant-stroke-text {
  font-family: var(--sa-font-body);
  font-weight: 900;
  font-size: clamp(4.5rem, 13vw, 14rem);
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1px rgba(212, 160, 23, 0.12);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
  will-change: transform;
}

/* Chữ khoét lộ ảnh (Background-clip: text) */
.text-clipped-photo {
  background-size: cover;
  background-position: center;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Đường kẻ vàng kỹ thuật vẽ ngang khi cuộn tới */
.gold-draw-line {
  width: 0;
  height: 2px;
  background-color: var(--sa-gold);
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}

.revealed .gold-draw-line,
.revealed.gold-draw-line {
  width: 64px;
}

/* Lưới kỹ thuật blueprint */
.bg-depth-blueprint {
  background-image:
    radial-gradient(circle at 50% 30%, rgba(212, 160, 23, 0.08), transparent 65%),
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to right, rgba(212, 160, 23, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(212, 160, 23, 0.035) 1px, transparent 1px);
  background-size: 100% 100%, 28px 28px, 28px 28px, 140px 140px, 140px 140px;
}

/* Cắt chéo kiến trúc (Clip Path) */
.clip-diagonal-top {
  clip-path: polygon(0 4vw, 100% 0, 100% 100%, 0 100%);
}

/* ==========================================================================
   4. HIỆU ỨNG TƯƠNG TÁC (SCROLL & BUTTON GLOW)
   ========================================================================== */
.reveal-block {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-block.revealed {
  opacity: 1;
  transform: translateY(0);
}

.scroll-scale-img {
  filter: grayscale(35%) contrast(1.05);
  transform: scale(0.98);
  transition: filter 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: filter, transform;
}

.scroll-scale-img.in-view {
  filter: grayscale(0%) contrast(1);
  transform: scale(1);
}

@keyframes goldGlowPulse {
  0% { box-shadow: 0 0 0 0 rgba(212, 160, 23, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(212, 160, 23, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 160, 23, 0); }
}

.btn-gold-pulse {
  animation: goldGlowPulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Nút bấm vàng chính */
.sa-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background-color: var(--sa-gold);
  color: var(--sa-text-dark);
  font-family: var(--sa-font-accent);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 0.85rem 1.75rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.sa-btn-primary:hover {
  background-color: var(--sa-gold-hover);
  color: var(--sa-text-dark);
  transform: translateY(-1px);
}

.sa-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: transparent;
  color: var(--sa-text);
  font-family: var(--sa-font-accent);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 0.85rem 1.5rem;
  border: 1px solid var(--sa-border-subtle);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.sa-btn-secondary:hover {
  color: var(--sa-gold);
  border-color: var(--sa-gold);
}

/* ==========================================================================
   5. HEADER & ĐIỀU HƯỚNG TOÀN CỤC (TOPBAR)
   ========================================================================== */
#scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2.5px;
  width: 0%;
  background-color: var(--sa-gold);
  z-index: 10000;
  pointer-events: none;
  transition: width 0.08s linear;
}

.sa-site-header {
  position: sticky;
  top: 0;
  z-index: 9000;
  background-color: rgba(18, 18, 18, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--sa-border-subtle);
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.sa-site-header.header-compact {
  background-color: rgba(18, 18, 18, 0.98);
  border-bottom-color: rgba(212, 160, 23, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
}

.sa-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--sa-header-height);
  transition: height 0.3s ease;
}

.sa-site-header.header-compact .sa-header-inner {
  height: var(--sa-header-compact-height);
}

.sa-brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--sa-text);
  font-family: var(--sa-font-body);
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sa-brand-link:hover {
  color: var(--sa-text);
}

.sa-brand-dot {
  width: 10px;
  height: 10px;
  background-color: var(--sa-gold);
  display: inline-block;
}

.sa-nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
  font-family: var(--sa-font-accent);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

@media (min-width: 900px) {
  .sa-nav-desktop {
    display: flex;
  }
}

.sa-nav-desktop a {
  color: var(--sa-text-muted);
  padding: 0.5rem 0;
  position: relative;
}

.sa-nav-desktop a:hover,
.sa-nav-desktop a.active,
.sa-nav-desktop .current-menu-item > a {
  color: var(--sa-gold);
}

.sa-nav-desktop a.active::after,
.sa-nav-desktop .current-menu-item > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--sa-gold);
}

.sa-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sa-header-call-btn {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--sa-gold);
  color: var(--sa-text-dark);
  font-family: var(--sa-font-accent);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.65rem 1.25rem;
  transition: background-color 0.25s ease;
}

.sa-header-call-btn:hover {
  background-color: var(--sa-gold-hover);
  color: var(--sa-text-dark);
}

@media (min-width: 640px) {
  .sa-header-call-btn {
    display: flex;
  }
}

.sa-mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--sa-text);
  padding: 0.5rem;
  cursor: pointer;
}

@media (min-width: 900px) {
  .sa-mobile-toggle {
    display: none;
  }
}

.sa-mobile-menu {
  display: none;
  background-color: var(--sa-bg-surface);
  border-bottom: 1px solid var(--sa-border-subtle);
  padding: 1.5rem;
  font-family: var(--sa-font-accent);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.sa-mobile-menu.open {
  display: block;
}

.sa-mobile-menu a {
  display: block;
  color: var(--sa-text-muted);
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.sa-mobile-menu a:hover,
.sa-mobile-menu a.active {
  color: var(--sa-gold);
}

.sa-mobile-menu .sa-mobile-call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--sa-gold);
  color: var(--sa-text-dark);
  padding: 0.85rem;
  margin-top: 1rem;
  border-bottom: none;
}

/* ==========================================================================
   6. TRANG CHỦ (FRONT PAGE)
   ========================================================================== */
.sa-hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 5rem 0;
}

@media (min-width: 1024px) {
  .sa-hero-section {
    min-height: 92vh;
    padding: 7rem 0;
  }
}

.sa-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
}

.sa-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #121212 0%, rgba(18, 18, 18, 0.88) 55%, rgba(18, 18, 18, 0.45) 100%);
}

.sa-hero-backdrop-text {
  position: absolute;
  top: -1.5rem;
  left: 0;
  right: 0;
  z-index: 0;
  overflow: hidden;
}

.sa-hero-content {
  position: relative;
  z-index: 10;
  max-width: 780px;
}

.sa-hero-title {
  font-size: clamp(2.25rem, 5.5vw, 4.5rem);
  line-height: 1.05;
  margin-bottom: 1.25rem;
  color: var(--sa-text);
}

.sa-hero-desc {
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  color: var(--sa-text-muted);
  max-width: 650px;
  margin-bottom: 2rem;
  font-weight: 300;
}

.sa-hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

/* Dải dự án tiêu biểu */
.sa-projects-section {
  padding: 6rem 0;
  background-color: var(--sa-bg);
  position: relative;
}

.sa-section-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .sa-section-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.sa-section-title {
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  margin-bottom: 0.5rem;
}

/* Dải cuộn ngang mượt mà */
.horizontal-project-track {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1.5rem;
}

.horizontal-project-track::-webkit-scrollbar {
  display: none;
}

.project-slide-item {
  flex: 0 0 84vw;
  scroll-snap-align: center;
}

@media (min-width: 640px) {
  .project-slide-item {
    flex: 0 0 460px;
  }
}

@media (min-width: 1024px) {
  .project-slide-item {
    flex: 0 0 540px;
  }
}

.sa-project-card {
  position: relative;
  overflow: hidden;
  display: block;
}

.sa-project-card-media {
  position: relative;
  height: 420px;
  overflow: hidden;
}

@media (max-width: 640px) {
  .sa-project-card-media {
    height: 340px;
  }
}

.sa-project-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sa-project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18, 18, 18, 0.95) 0%, rgba(18, 18, 18, 0.45) 50%, transparent 100%);
}

.sa-project-card-body {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  z-index: 5;
}

.sa-project-card-cat {
  font-family: var(--sa-font-accent);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--sa-gold);
  display: block;
  margin-bottom: 0.5rem;
}

.sa-project-card-name {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--sa-text);
  margin-bottom: 0.5rem;
  line-height: 1.25;
  transition: color 0.2s ease;
}

.sa-project-card:hover .sa-project-card-name {
  color: var(--sa-gold);
}

.sa-project-card-excerpt {
  font-size: 0.85rem;
  color: var(--sa-text-muted);
  line-height: 1.5;
  font-weight: 300;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.sa-project-card-link-text {
  font-family: var(--sa-font-accent);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--sa-gold);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* 4 Dịch vụ dòng lớn */
.sa-services-section {
  padding: 7rem 0 6rem;
  background-color: var(--sa-bg-surface);
  position: relative;
}

.service-row-item {
  position: relative;
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--sa-border-subtle);
  transition: padding-left 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.service-row-item:hover {
  padding-left: 1.25rem;
  border-bottom-color: var(--sa-gold);
}

.service-row-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  align-items: center;
}

@media (min-width: 768px) {
  .service-row-inner {
    grid-template-columns: 80px 1.8fr 2fr 40px;
    gap: 1.5rem;
  }
}

.service-row-num {
  font-family: var(--sa-font-body);
  font-size: 2.25rem;
  font-weight: 900;
  color: rgba(212, 160, 23, 0.4);
  transition: color 0.3s ease;
}

.service-row-item:hover .service-row-num {
  color: var(--sa-gold);
}

.service-row-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--sa-text);
  margin: 0;
  transition: color 0.3s ease;
}

.service-row-item:hover .service-row-title {
  color: var(--sa-gold);
}

.service-row-desc {
  font-size: 0.9rem;
  color: var(--sa-text-muted);
  font-weight: 300;
  margin: 0;
}

.service-row-arrow {
  color: var(--sa-gold);
  display: none;
  text-align: right;
  transition: transform 0.25s ease;
}

@media (min-width: 768px) {
  .service-row-arrow {
    display: block;
  }
}

.service-row-item:hover .service-row-arrow {
  transform: translateX(6px);
}

/* Khối xưởng Song Anh */
.sa-factory-section {
  padding: 7rem 0;
  background-color: var(--sa-bg);
  position: relative;
  overflow: hidden;
}

.sa-factory-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .sa-factory-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
  }
}

.sa-factory-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sa-factory-address-box {
  border-left: 2px solid var(--sa-gold);
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sa-factory-address-label {
  font-family: var(--sa-font-accent);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--sa-gold);
  display: block;
  margin-bottom: 0.25rem;
}

.sa-factory-address-val {
  color: var(--sa-text);
  font-size: 0.95rem;
  margin: 0;
}

/* Collage ảnh xưởng */
.sa-factory-collage {
  position: relative;
}

.sa-factory-main-frame {
  width: 100%;
  height: 380px;
  background-color: var(--sa-bg-surface-alt);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  border: 1px solid var(--sa-border);
}

.sa-factory-overlay-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -0.5rem;
  background-color: var(--sa-bg-surface);
  border: 1px solid var(--sa-gold);
  padding: 1rem 1.25rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.75);
}

@media (max-width: 640px) {
  .sa-factory-overlay-badge {
    position: static;
    margin-top: 1rem;
  }
}

/* Quy trình 4 bước */
.sa-process-section {
  padding: 6.5rem 0;
  background-color: var(--sa-bg-surface);
  position: relative;
}

.sa-process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  position: relative;
}

@media (min-width: 640px) {
  .sa-process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .sa-process-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

.sa-process-step {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sa-step-num {
  width: 48px;
  height: 48px;
  background-color: var(--sa-bg);
  border: 2px solid var(--sa-gold);
  color: var(--sa-gold);
  font-family: var(--sa-font-body);
  font-weight: 900;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sa-step-title {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--sa-text);
  margin: 0;
}

.sa-step-desc {
  font-size: 0.88rem;
  color: var(--sa-text-muted);
  line-height: 1.6;
  font-weight: 300;
  margin: 0;
}

/* Logo đối tác chạy ngang (Marquee) */
.sa-partners-section {
  padding: 5rem 0;
  background-color: var(--sa-bg);
  border-top: 1px solid var(--sa-border-subtle);
  overflow: hidden;
  text-align: center;
}

.marquee-container {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 4rem;
  width: max-content;
  animation: marqueeScroll 25s linear infinite;
}

.marquee-container:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-item {
  height: 48px;
  max-width: 160px;
  object-fit: contain;
  filter: brightness(180%) contrast(1.1);
  opacity: 0.65;
  transition: opacity 0.25s ease;
}

.marquee-item:hover {
  opacity: 1;
}

/* Khối kêu gọi gọi điện (CTA Banner) */
.sa-cta-banner {
  padding: 6rem 1.5rem;
  background: linear-gradient(180deg, var(--sa-bg-surface) 0%, #0E0E0E 100%);
  border-top: 1px solid rgba(212, 160, 23, 0.35);
  text-align: center;
}

.sa-cta-phone-num {
  font-family: var(--sa-font-body);
  font-weight: 900;
  font-size: clamp(2.25rem, 5vw, 4rem);
  color: var(--sa-gold);
  letter-spacing: 0.05em;
  margin: 1rem 0 2rem;
  display: block;
}

/* ==========================================================================
   7. CHÂN TRANG TOÀN CỤC (FOOTER)
   ========================================================================== */
.sa-site-footer {
  background-color: #0E0E0E;
  border-top: 1px solid var(--sa-border-subtle);
  color: var(--sa-text-muted);
  font-size: 0.9rem;
}

.sa-footer-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding: 5rem 0 3.5rem;
}

@media (min-width: 768px) {
  .sa-footer-main {
    grid-template-columns: 1.5fr 1fr 1.3fr;
    gap: 3rem;
  }
}

.sa-footer-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sa-footer-heading {
  font-family: var(--sa-font-accent);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--sa-text);
  margin-bottom: 0.5rem;
}

.sa-footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.sa-footer-menu a {
  color: var(--sa-text-muted);
  font-size: 0.88rem;
  font-weight: 300;
}

.sa-footer-menu a:hover {
  color: var(--sa-gold);
}

.sa-footer-contact-item {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.sa-footer-contact-item strong {
  color: var(--sa-text);
  display: block;
  font-weight: 500;
}

.sa-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.5rem 0;
  text-align: center;
  font-family: var(--sa-font-accent);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(163, 163, 163, 0.6);
}

/* ==========================================================================
   8. THANH ĐÁY CỐ ĐỊNH MOBILE (STICKY BOTTOM BAR)
   ========================================================================== */
.sa-mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--sa-bottom-bar-height);
  background-color: rgba(22, 22, 22, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--sa-gold);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 9999;
}

@media (min-width: 1024px) {
  .sa-mobile-bottom-bar {
    display: none;
  }
}

.sa-bottom-phone {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--sa-text);
  font-family: var(--sa-font-accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.sa-bottom-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sa-btn-bottom-call {
  background-color: var(--sa-gold);
  color: var(--sa-text-dark);
  font-family: var(--sa-font-accent);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  padding: 0.45rem 0.85rem;
  border-radius: 2px;
}

.sa-btn-bottom-call:hover {
  background-color: var(--sa-gold-hover);
  color: var(--sa-text-dark);
}

.sa-btn-bottom-zalo {
  background-color: var(--sa-bg);
  border: 1px solid var(--sa-gold);
  color: var(--sa-gold);
  font-family: var(--sa-font-accent);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  padding: 0.45rem 0.85rem;
  border-radius: 2px;
}

.sa-btn-bottom-zalo:hover {
  background-color: var(--sa-gold);
  color: var(--sa-text-dark);
}

/* ==========================================================================
   9. LƯỚI ẢNH GIAO DIỆN CON (.sa-gallery & SHORTCODE OVERRIDES)
   ========================================================================== */
.sa-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 2.5rem 0;
}

@media (min-width: 768px) {
  .sa-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

.sa-gallery-item {
  position: relative;
  overflow: hidden;
  background-color: var(--sa-bg-surface);
  border: 1px solid var(--sa-border);
}

.sa-gallery-link {
  display: block;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.sa-gallery-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

@media (max-width: 640px) {
  .sa-gallery-img {
    height: 280px;
  }
}

.sa-gallery-link:hover .sa-gallery-img {
  transform: scale(1.05);
}

.sa-gallery-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(18, 18, 18, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sa-gold);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sa-gallery-link:hover .sa-gallery-overlay {
  opacity: 1;
}

/* ==========================================================================
   10. ĐỊNH DẠNG NỘI DUNG WPBAKERY TRÊN NỀN TỐI (COMPATIBILITY)
   ========================================================================== */
.vc_row,
.wpb_row {
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-bottom: 2rem;
}

.vc_column_container {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.vc_column_text,
.wpb_text_column {
  color: var(--sa-text);
  font-family: var(--sa-font-body);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.vc_column_text p,
.wpb_text_column p {
  color: var(--sa-text-muted);
  margin-bottom: 1.25rem;
  font-weight: 300;
}

.vc_column_text h2,
.wpb_text_column h2,
.sa-ultimate-heading {
  font-size: 1.75rem;
  color: var(--sa-text);
  margin-top: 2rem;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--sa-border-subtle);
}

.vc_column_text h3,
.wpb_text_column h3 {
  font-size: 1.35rem;
  color: var(--sa-gold);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.vc_column_text ul,
.wpb_text_column ul {
  list-style: none;
  padding-left: 0;
  margin: 1.25rem 0;
}

.vc_column_text ul li,
.wpb_text_column ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.65rem;
  color: var(--sa-text);
}

.vc_column_text ul li::before,
.wpb_text_column ul li::before {
  content: '▪';
  position: absolute;
  left: 0;
  color: var(--sa-gold);
  font-size: 1.1rem;
  line-height: 1.4;
}

.vc_column_text blockquote,
.wpb_text_column blockquote {
  border-left: 3px solid var(--sa-gold);
  background-color: var(--sa-bg-surface-alt);
  padding: 1.25rem 1.75rem;
  margin: 2rem 0;
  color: var(--sa-text);
  font-style: italic;
}

.ultimate_video_player,
.wpb_video_wrapper {
  margin: 2rem 0;
  background-color: var(--sa-bg-surface);
  border: 1px solid var(--sa-border);
  overflow: hidden;
}

.vc_gallery,
.wpb_gallery {
  margin: 2rem 0;
}

/* ==========================================================================
   11. TRANG CHI TIẾT DỰ ÁN (SINGLE PORTFOLIO) & BREADCRUMBS
   ========================================================================== */
.sa-single-header {
  padding: 4rem 0 2rem;
  border-bottom: 1px solid var(--sa-border-subtle);
  margin-bottom: 3rem;
}

.sa-breadcrumb {
  font-family: var(--sa-font-accent);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--sa-text-muted);
  margin-bottom: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.sa-breadcrumb a {
  color: var(--sa-text-muted);
}

.sa-breadcrumb a:hover {
  color: var(--sa-gold);
}

.sa-breadcrumb .sa-sep {
  color: var(--sa-gold);
}

.sa-breadcrumb span {
  color: var(--sa-text);
}

.sa-single-title {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.sa-single-hero-img {
  width: 100%;
  max-height: 600px;
  object-fit: cover;
  margin-bottom: 3rem;
  border: 1px solid var(--sa-border);
}

/* Nội dung WPBakery cũ dùng cột float: chặn float để khối sau không bị bóp */
.sa-single-content::after {
  content: '';
  display: table;
  clear: both;
}

/* Điều hướng bài trước / sau */
.sa-post-navigation {
  clear: both;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 2.5rem 0;
  margin: 4rem 0 2rem;
  border-top: 1px solid var(--sa-border-subtle);
  border-bottom: 1px solid var(--sa-border-subtle);
  font-family: var(--sa-font-accent);
}

.sa-post-nav-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-width: 45%;
}

.sa-post-nav-label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--sa-gold);
}

.sa-post-nav-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--sa-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sa-post-nav-title:hover {
  color: var(--sa-gold);
}

/* ==========================================================================
   12. TRANG DANH SÁCH DỰ ÁN (ARCHIVE & TAXONOMY)
   ========================================================================== */
.sa-archive-header {
  padding: 5rem 0 3rem;
  background-color: var(--sa-bg);
  position: relative;
}

.sa-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--sa-border-subtle);
  margin-bottom: 3.5rem;
  font-family: var(--sa-font-accent);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.sa-filter-link {
  color: var(--sa-text-muted);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.sa-filter-link:hover,
.sa-filter-link.active {
  color: var(--sa-gold);
  border-bottom-color: var(--sa-gold);
}

.sa-project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem 2rem;
}

@media (min-width: 640px) {
  .sa-project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .sa-project-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Phân trang */
.sa-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 4rem 0 2rem;
  font-family: var(--sa-font-accent);
  font-size: 0.85rem;
  font-weight: 700;
}

.sa-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 0.5rem;
  border: 1px solid var(--sa-border);
  color: var(--sa-text-muted);
  background-color: var(--sa-bg-surface);
}

.sa-pagination .page-numbers:hover,
.sa-pagination .page-numbers.current {
  background-color: var(--sa-gold);
  border-color: var(--sa-gold);
  color: var(--sa-text-dark);
}

/* ==========================================================================
   13. LIGHTBOX POPUP THUẦN JAVASCRIPT
   ========================================================================== */
#sa-lightbox {
  position: fixed;
  inset: 0;
  background-color: rgba(10, 10, 10, 0.96);
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

#sa-lightbox.active {
  display: flex;
}

#sa-lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(212, 160, 23, 0.3);
}

#sa-lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  color: var(--sa-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
}

#sa-lightbox-close:hover {
  color: var(--sa-gold);
}

#sa-lightbox-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 2rem;
  right: 2rem;
  text-align: center;
  color: var(--sa-text-muted);
  font-family: var(--sa-font-accent);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

/* ==========================================================================
   14. REDUCED MOTION CHO NGƯỜI DÙNG BẬT CHẾ ĐỘ GIẢM CHUYỂN ĐỘNG
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal-block {
    opacity: 1 !important;
    transform: none !important;
  }
  .scroll-scale-img {
    filter: none !important;
    transform: none !important;
  }
  .gold-draw-line {
    width: 64px !important;
  }
  .btn-gold-pulse {
    animation: none !important;
  }
  .marquee-track {
    animation: none !important;
  }
}

/* Ảnh xưởng thật trong khung khối Xưởng */
.sa-factory-main-frame.sa-factory-photo {
  padding: 0;
  overflow: hidden;
}

.sa-factory-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   KHỐI BÀI VIẾT MỚI (BLOG) TRANG CHỦ
   ========================================================================== */
.sa-blog-section {
  padding: 6rem 0;
  background-color: var(--sa-bg);
}

.sa-blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .sa-blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.sa-blog-card {
  display: flex;
  flex-direction: column;
  background-color: var(--sa-bg-surface-alt);
}

.sa-blog-card-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--sa-bg-card);
}

.sa-blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.sa-blog-card:hover .sa-blog-card-media img {
  transform: scale(1.04);
}

.sa-blog-card-body {
  padding: 1.5rem 1.5rem 2rem;
  border-left: 2px solid var(--sa-gold);
}

.sa-blog-card-date {
  font-family: var(--sa-font-accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--sa-gold);
}

.sa-blog-card-title {
  font-size: 1.15rem;
  line-height: 1.35;
  margin: 0.6rem 0 0.75rem;
}

.sa-blog-card-title a {
  color: var(--sa-text);
}

.sa-blog-card-title a:hover {
  color: var(--sa-gold);
}

.sa-blog-card-excerpt {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--sa-text-muted);
  margin: 0;
}

/* Trang 1 bài viết: nới cột chữ (Blocksy mặc định 750px, bài cũ còn cột WPBakery bên trong nên bị hẹp) */
body.single-post {
  --theme-narrow-container-max-width: 960px;
}

/* ==========================================================================
   TRANG 1 BÀI VIẾT (single.php) — toàn trang, 2 cột, chữ tương phản cao
   Nội dung cũ soạn cho nền trắng: các màu ghi cứng được đổi sang bản nền tối.
   ========================================================================== */
.sa-post-hero {
  padding: 4.5rem 0 3.5rem;
  border-bottom: 1px solid var(--sa-border);
}

.sa-post-hero .sa-breadcrumb {
  font-family: var(--sa-font-accent);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: #BDBDBD;
  margin-bottom: 1.75rem;
}

.sa-post-hero .sa-breadcrumb a {
  color: #BDBDBD;
}

.sa-post-hero .sa-breadcrumb a:hover {
  color: var(--sa-gold);
}

.sa-post-cat {
  margin-bottom: 1rem;
}

.sa-post-title {
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  line-height: 1.15;
  max-width: 1000px;
  margin: 0 0 1.5rem;
  color: #FFFFFF;
}

.sa-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  font-family: var(--sa-font-accent);
  font-size: 0.82rem;
  font-weight: 600;
  color: #C8C8C8;
}

.sa-post-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding-top: 3.5rem;
  padding-bottom: 4rem;
}

@media (min-width: 1100px) {
  .sa-post-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 4rem;
  }

  .sa-post-sidebar {
    position: sticky;
    top: 90px;
    align-self: start;
  }
}

.sa-post-main {
  min-width: 0;
}

.sa-post-cover {
  margin: 0 0 2.5rem;
}

.sa-post-cover img {
  width: 100%;
  height: auto;
}

/* Chữ thân bài: sáng, to, dễ đọc */
.sa-post-content {
  font-size: 1.075rem;
  line-height: 1.85;
  color: #E8E8E8;
  font-weight: 400;
}

.sa-post-content p,
.sa-post-content li,
.sa-post-content td,
.sa-post-content span,
.sa-post-content em,
.sa-post-content div {
  color: inherit;
}

.sa-post-content strong,
.sa-post-content b {
  color: #FFFFFF;
  font-weight: 700;
}

.sa-post-content p {
  margin: 0 0 1.35rem;
}

.sa-post-content h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: #FFFFFF;
  margin: 3rem 0 1.25rem;
  padding-left: 1rem;
  border-left: 4px solid var(--sa-gold);
  letter-spacing: -0.01em;
}

.sa-post-content h3 {
  font-size: 1.35rem;
  color: var(--sa-gold-hover);
  margin: 2.25rem 0 1rem;
  font-weight: 700;
}

.sa-post-content h4 {
  font-size: 1.12rem;
  color: #FFFFFF;
  margin: 1.75rem 0 0.75rem;
  font-weight: 700;
}

.sa-post-content a {
  color: var(--sa-gold-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sa-post-content a:hover {
  color: #FFFFFF;
}

.sa-post-content ul,
.sa-post-content ol {
  padding-left: 1.4rem;
  margin: 0 0 1.5rem;
}

.sa-post-content li::marker {
  color: var(--sa-gold);
}

.sa-post-content li {
  margin-bottom: 0.5rem;
}

.sa-post-content img {
  max-width: 100%;
  height: auto;
}

.sa-post-content figcaption,
.sa-post-content .wp-caption-text,
.sa-post-content .wp-element-caption {
  font-size: 0.88rem;
  color: #BDBDBD !important;
  font-style: italic;
  text-align: center;
  margin-top: 0.6rem;
}

.sa-post-content blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  background: #1C1C1C;
  border-left: 4px solid var(--sa-gold);
  color: #F0F0F0;
  font-style: normal;
}

.sa-post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 2rem;
  font-size: 0.97rem;
  display: block;
  overflow-x: auto;
}

.sa-post-content th,
.sa-post-content td {
  border: 1px solid #3A3A3A;
  padding: 0.75rem 1rem;
  text-align: left;
  vertical-align: top;
}

.sa-post-content th,
.sa-post-content thead td {
  background: #242424 !important;
  color: var(--sa-gold-hover) !important;
  font-weight: 700;
}

.sa-post-content iframe {
  max-width: 100%;
}

/* Bố cục WPBakery cũ: cột hàng ngoài cùng chiếm hết chiều rộng, ẩn cột trống 2 bên */
.sa-post-content .wpb-content-wrapper > .vc_row > .wpb_column {
  width: 100%;
  float: none;
}

.sa-post-content .wpb-content-wrapper > .vc_row > .wpb_column:not(:has(.wpb_content_element, img, iframe, table, p, h2, h3)) {
  display: none;
}

.sa-post-content .vc_row {
  margin-left: 0;
  margin-right: 0;
}

/* Màu chữ ghi cứng trong bài cũ (soạn cho nền trắng: #222, #334155, xanh dương…) → chữ sáng.
   Giữ màu vàng và trắng vốn hợp nền tối. */
.sa-post-content [style*="color"]:not(a):not([style*="#d59c02" i]):not([style*="#ffcc00" i]):not([style*="#f59e0b" i]):not([style*="#c5a47e" i]):not([style*="color:#fff" i]):not([style*="color: #fff" i]):not([style*="color:white" i]):not([style*="color: white" i]) {
  color: #F0F0F0 !important;
}

/* Nền ghi cứng trong bài cũ: nền sáng (#f…, #e…, trắng) và nền xanh navy/đen → nền tối viền vàng (bỏ navy theo TD-019).
   Nhận diện theo MÀU NỀN (không theo cả thuộc tính style), để hộp có viền vàng vẫn được đổi; giữ nền vàng của nút (#f59e0b). */
.sa-post-content :is(
  [style*="background:#f" i], [style*="background: #f" i], [style*="background-color:#f" i], [style*="background-color: #f" i],
  [style*="background:#e" i], [style*="background: #e" i], [style*="background-color:#e" i], [style*="background-color: #e" i],
  [style*="background:white" i], [style*="background: white" i], [style*="background-color:white" i], [style*="background-color: white" i],
  [style*="background:rgb(2" i], [style*="background: rgb(2" i], [style*="background-color:rgb(2" i], [style*="background-color: rgb(2" i],
  [style*="background:#0" i], [style*="background: #0" i], [style*="background-color:#0" i], [style*="background-color: #0" i],
  [style*="background:#1e293b" i], [style*="background: #1e293b" i], [style*="background-color:#1e293b" i], [style*="background-color: #1e293b" i]
):not([style*="f59e0b" i]) {
  background: #1C1C1C !important;
  border-color: rgba(212, 160, 23, 0.45) !important;
  color: #F0F0F0 !important;
}

/* Bảng: luôn nền tối, xen kẽ 2 sắc, kể cả bảng có nền ghi cứng theo dòng */
.sa-post-content table tr,
.sa-post-content table td {
  background: #161616 !important;
  color: #ECECEC !important;
}

.sa-post-content table tr:nth-child(even) td {
  background: #1E1E1E !important;
}

.sa-post-content table tr:first-child td {
  font-weight: 700;
}

/* Hộp thông báo WPBakery (vc_message) và mục lục (LuckyWP TOC) */
.sa-post-content .vc_message_box {
  background: #1C1C1C !important;
  border: 1px solid rgba(212, 160, 23, 0.45) !important;
  color: #F0F0F0 !important;
}

.sa-post-content .vc_message_box * {
  color: #F0F0F0 !important;
}

.sa-post-content .lwptoc_i {
  background: #1A1A1A !important;
  border: 1px solid var(--sa-border) !important;
  border-left: 3px solid var(--sa-gold) !important;
  padding: 1.25rem 1.5rem !important;
}

.sa-post-content .lwptoc_title {
  color: #FFFFFF !important;
  font-weight: 800;
}

.sa-post-content .lwptoc_item a {
  color: #E0E0E0 !important;
  text-decoration: none;
}

.sa-post-content .lwptoc_item a:hover {
  color: var(--sa-gold-hover) !important;
}

.sa-post-content .lwptoc_item_number {
  color: var(--sa-gold) !important;
}

/* Thẻ, cột phải */
.sa-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2.5rem;
}

.sa-post-tags a {
  font-family: var(--sa-font-accent);
  font-size: 0.78rem;
  font-weight: 700;
  color: #D0D0D0;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--sa-border);
}

.sa-post-tags a:hover {
  color: var(--sa-gold);
  border-color: var(--sa-gold);
}

.sa-post-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sa-side-card {
  background: #1A1A1A;
  border-top: 2px solid var(--sa-gold);
  padding: 1.5rem;
}

.sa-side-card .sa-label {
  margin-bottom: 1rem;
}

.sa-side-cta p {
  color: #E0E0E0;
  font-size: 0.95rem;
  margin: 0 0 1.25rem;
}

.sa-side-cta .sa-btn-primary,
.sa-side-cta .sa-btn-secondary {
  display: flex;
  width: 100%;
  justify-content: center;
  margin-bottom: 0.6rem;
}

.sa-side-list,
.sa-side-posts {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sa-side-list li a {
  display: block;
  padding: 0.6rem 0;
  color: #E8E8E8;
  border-bottom: 1px solid var(--sa-border);
  font-weight: 500;
}

.sa-side-list li a:hover {
  color: var(--sa-gold);
}

.sa-side-posts li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--sa-border);
}

.sa-side-posts a {
  display: block;
  color: #E8E8E8;
  font-size: 0.93rem;
  line-height: 1.45;
  font-weight: 500;
}

.sa-side-posts a:hover {
  color: var(--sa-gold);
}

.sa-side-posts time {
  font-size: 0.75rem;
  color: #A8A8A8;
}

.sa-post-related {
  border-top: 1px solid var(--sa-border);
}

/* Logo ảnh ở đầu/chân trang */
.sa-brand-logo {
  display: block;
  height: 46px;
  width: auto;
  max-width: 230px;
}

.sa-site-header.header-compact .sa-brand-logo {
  height: 38px;
}

.sa-footer-logo {
  height: 52px;
  max-width: 260px;
}

@media (max-width: 767px) {
  .sa-brand-logo {
    height: 36px;
    max-width: 180px;
  }
}

/* ==========================================================================
   TRANG 1 DỰ ÁN (single-portfolio.php)
   ========================================================================== */
.sa-project-hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: flex-end;
  background-color: #141414;
  background-size: cover;
  background-position: center;
}

.sa-project-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 12, 12, 0.92) 0%, rgba(12, 12, 12, 0.55) 55%, rgba(12, 12, 12, 0.2) 100%),
    linear-gradient(0deg, rgba(18, 18, 18, 1) 0%, rgba(18, 18, 18, 0) 35%);
}

.sa-project-hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 6rem;
  padding-bottom: 3.5rem;
}

.sa-project-hero .sa-breadcrumb {
  font-family: var(--sa-font-accent);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: #D0D0D0;
  margin-bottom: 1.5rem;
}

.sa-project-hero .sa-breadcrumb a {
  color: #D0D0D0;
}

.sa-project-hero .sa-breadcrumb a:hover {
  color: var(--sa-gold);
}

.sa-project-hero-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.sa-project-title {
  font-size: clamp(2rem, 4.6vw, 3.8rem);
  line-height: 1.1;
  max-width: 900px;
  margin: 0 0 2rem;
  color: #FFFFFF;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.sa-project-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.sa-project-hero-actions .sa-btn-secondary {
  background: rgba(18, 18, 18, 0.55);
}

/* Thẻ thông số */
.sa-spec-list {
  margin: 0;
}

.sa-spec-list > div {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--sa-border);
}

.sa-spec-list > div:last-child {
  border-bottom: 0;
}

.sa-spec-list dt {
  font-family: var(--sa-font-accent);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sa-gold);
  margin-bottom: 0.25rem;
}

.sa-spec-list dd {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #F0F0F0;
}

/* Mô tả dự án: tiêu đề phụ "Thông tin dự án" của bài cũ nằm cột riêng → bỏ khoảng trống thừa */
.sa-project-content .vc_row_inner > .wpb_column,
.sa-project-content .vc_inner > .wpb_column {
  width: 100%;
  float: none;
}

.sa-project-content > :first-child,
.sa-project-content .wpb-content-wrapper > .vc_row:first-child {
  margin-top: 0;
}

.sa-project-content h3:first-child {
  margin-top: 0;
}

/* Thư viện ảnh dạng ô lớn – ô nhỏ */
.sa-project-gallery {
  padding: 4.5rem 0 3rem;
  background: var(--sa-bg-surface);
  border-top: 1px solid var(--sa-border);
}

.sa-gallery-count {
  font-family: var(--sa-font-accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--sa-text-muted);
  margin-left: 0.75rem;
  vertical-align: middle;
}

.sa-gallery.sa-gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 160px;
  grid-auto-flow: dense;
  gap: 0.75rem;
  margin: 2rem 0 0;
}

@media (min-width: 768px) {
  .sa-gallery.sa-gallery-mosaic {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    gap: 1rem;
  }
}

.sa-mosaic-item {
  position: relative;
  display: block;
  overflow: hidden;
  background: #1A1A1A;
}

.sa-mosaic-item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

@media (min-width: 768px) {
  .sa-mosaic-item:nth-child(6n + 4) {
    grid-column: span 2;
  }
}

.sa-mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.4s ease;
}

.sa-mosaic-item:hover img {
  transform: scale(1.04);
  filter: brightness(1.08);
}

/* Dự án cùng nhóm */
.sa-related-projects {
  padding: 5rem 0 4rem;
  border-top: 1px solid var(--sa-border);
}

.sa-related-projects .sa-section-title {
  margin-bottom: 2.5rem;
}

@media (max-width: 767px) {
  .sa-project-hero {
    min-height: 62vh;
  }

  .sa-project-hero-inner {
    padding-top: 4rem;
    padding-bottom: 2.5rem;
  }
}

/* Điện thoại: ảnh đầu chiếm 2 ô, các ảnh sau đi theo cặp → ảnh cuối lẻ thì dàn đủ ngang */
@media (max-width: 767px) {
  .sa-mosaic-item:last-child:nth-child(even) {
    grid-column: span 2;
  }
}

/* Ảnh/khung chú thích/video trong bài cũ có bề ngang ghi cứng (vd figure.wp-caption style="width: 1200px")
   → luôn co theo cột nội dung, không tràn sang cột phải */
.sa-post-content figure,
.sa-post-content .wp-caption,
.sa-post-content .wp-block-image,
.sa-post-content .wp-video,
.sa-post-content .wp-block-embed,
.sa-post-content .wp-block-embed__wrapper,
.sa-post-content .ult-video,
.sa-post-content .vc_video-bg-container,
.sa-post-content .wpb_video_wrapper {
  max-width: 100% !important;
  box-sizing: border-box;
}

.sa-post-content .wp-caption,
.sa-post-content figure[style*="width"] {
  width: auto !important;
}

.sa-post-content .wp-caption.aligncenter,
.sa-post-content figure.aligncenter {
  margin-left: auto !important;
  margin-right: auto !important;
}

.sa-post-content img,
.sa-post-content video,
.sa-post-content iframe,
.sa-post-content embed,
.sa-post-content object {
  max-width: 100% !important;
}

.sa-post-content img {
  height: auto !important;
}

.sa-post-content iframe[src*="youtube"],
.sa-post-content iframe[src*="youtu.be"] {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
}

/* Khối có bề ngang tối thiểu ghi cứng (vd min-width: 620px) → bỏ trên màn hình hẹp */
@media (max-width: 1099px) {
  .sa-post-content [style*="min-width"] {
    min-width: 0 !important;
  }
}

/* ==========================================================================
   KHỐI LIÊN HỆ + FORM BÁO GIÁ (Contact Form 7)
   ========================================================================== */
/* Hộp CTA cũ ghi cứng trong bài (số 0981, "24/7", nền navy) → ẩn, thay bằng khối liên hệ chung */
.sa-post-content .songanh-contact-box {
  display: none !important;
}

.sa-contact-block {
  padding: 5rem 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(212, 160, 23, 0.08), transparent 55%),
    var(--sa-bg-surface);
  border-top: 1px solid rgba(212, 160, 23, 0.35);
}

.sa-contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .sa-contact-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 4rem;
  }
}

.sa-contact-lead {
  color: #E0E0E0;
  font-size: 1.02rem;
  line-height: 1.7;
  margin: 0 0 1.5rem;
  max-width: 480px;
}

.sa-contact-phone {
  display: block;
  font-family: var(--sa-font-body);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--sa-gold);
  margin-bottom: 1.25rem;
}

.sa-contact-phone:hover {
  color: var(--sa-gold-hover);
}

.sa-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.sa-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  color: #D6D6D6;
  font-size: 0.95rem;
  line-height: 1.6;
}

.sa-contact-list li {
  padding: 0.75rem 0;
  border-top: 1px solid var(--sa-border);
}

.sa-contact-list strong {
  color: #FFFFFF;
}

.sa-contact-list a {
  color: var(--sa-gold-hover);
}

.sa-contact-form {
  background: #1A1A1A;
  border: 1px solid var(--sa-border);
  border-top: 3px solid var(--sa-gold);
  padding: 2rem;
}

@media (max-width: 767px) {
  .sa-contact-form {
    padding: 1.5rem 1.25rem;
  }
}

.sa-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem 1.25rem;
}

@media (min-width: 640px) {
  .sa-form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .sa-form-full {
    grid-column: 1 / -1;
  }
}

.sa-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sa-form-field > span {
  font-family: var(--sa-font-accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #E6E6E6;
}

.sa-cf7 .wpcf7-form-control-wrap {
  display: block;
}

.sa-cf7 input[type="text"],
.sa-cf7 input[type="tel"],
.sa-cf7 input[type="email"],
.sa-cf7 select,
.sa-cf7 textarea {
  width: 100%;
  background: #111111;
  color: #F5F5F5;
  border: 1px solid #3A3A3A;
  border-radius: 0;
  padding: 0.8rem 0.9rem;
  font-family: var(--sa-font-body);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.2s ease;
}

.sa-cf7 select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #D4A017 50%), linear-gradient(135deg, #D4A017 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

.sa-cf7 textarea {
  min-height: 120px;
  resize: vertical;
}

.sa-cf7 ::placeholder {
  color: #8A8A8A;
}

.sa-cf7 input:focus,
.sa-cf7 select:focus,
.sa-cf7 textarea:focus {
  outline: none;
  border-color: var(--sa-gold);
}

.sa-cf7 input[type="file"] {
  color: #D0D0D0;
  font-size: 0.9rem;
}

.sa-cf7 input[type="file"]::file-selector-button {
  background: #2A2A2A;
  color: #F0F0F0;
  border: 1px solid #444444;
  padding: 0.5rem 0.9rem;
  margin-right: 0.75rem;
  cursor: pointer;
}

.sa-cf7 input[type="submit"] {
  width: 100%;
  background: var(--sa-gold);
  color: #121212;
  border: 0;
  padding: 1rem 1.5rem;
  font-family: var(--sa-font-accent);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.sa-cf7 input[type="submit"]:hover {
  background: var(--sa-gold-hover);
}

.sa-form-note {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: #A8A8A8;
  text-align: center;
}

/* Ô chặn thư rác: ẩn với người dùng */
.sa-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.sa-cf7 .wpcf7-not-valid-tip {
  color: #FF8A80;
  font-size: 0.82rem;
  margin-top: 0.3rem;
}

.sa-cf7 .wpcf7-not-valid {
  border-color: #FF8A80 !important;
}

.sa-cf7 .wpcf7-response-output {
  margin: 1.25rem 0 0 !important;
  padding: 0.9rem 1rem !important;
  border: 1px solid var(--sa-gold) !important;
  color: #F0F0F0;
  background: #222222;
  font-size: 0.92rem;
}

.sa-cf7.sent .wpcf7-response-output {
  border-color: #4CAF50 !important;
}

.sa-cf7 .wpcf7-spinner {
  display: block;
  margin: 0.75rem auto 0;
}

/* Trang Liên hệ */
.sa-contact-places {
  padding: 4rem 0 5rem;
}

.sa-contact-places-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .sa-contact-places-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.sa-contact-places p {
  color: #E0E0E0;
  margin: 0 0 0.75rem;
  line-height: 1.6;
}

.sa-contact-places a {
  color: var(--sa-gold-hover);
}

.sa-contact-map {
  grid-column: 1 / -1;
}

.sa-contact-map iframe {
  width: 100%;
  height: 380px;
  border: 0;
  filter: grayscale(0.4) contrast(1.05);
}

.sa-cf7 select {
  height: auto;
  min-height: 48px;
  padding-right: 2.4rem;
}

.sa-cf7 .sa-form-field input,
.sa-cf7 .sa-form-field select,
.sa-cf7 .sa-form-field textarea {
  max-width: none;
}

/* ==========================================================================
   ĐỘI NGŨ (trang chủ) — khung ảnh chân dung có dấu góc như khung bản vẽ
   ========================================================================== */
.sa-team-section {
  padding: 6.5rem 0;
  background-color: var(--sa-bg);
  border-top: 1px solid var(--sa-border-subtle);
}

.sa-team-lead {
  max-width: 420px;
  margin: 0;
  color: var(--sa-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  font-weight: 300;
}

.sa-team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .sa-team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
  }
}

.sa-team-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.sa-team-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 100%;
  background-color: var(--sa-bg-card);
  border: 1px solid var(--sa-border);
  overflow: hidden;
}

.sa-team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: grayscale(0.35) contrast(1.02);
  transition: filter 0.5s ease, transform 0.6s ease;
}

.sa-team-card:hover .sa-team-photo img {
  filter: none;
  transform: scale(1.03);
}

.sa-team-photo--trong {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sa-team-initials {
  font-family: var(--sa-font-accent);
  font-weight: 800;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  letter-spacing: 0.08em;
  color: var(--sa-gold);
  opacity: 0.85;
}

/* Dấu góc vàng (trên trái, dưới phải) */
.sa-team-mark {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--sa-gold);
  border-style: solid;
  pointer-events: none;
  transition: width 0.4s ease, height 0.4s ease;
}

.sa-team-mark--tl { top: 10px; left: 10px; border-width: 2px 0 0 2px; }
.sa-team-mark--br { bottom: 10px; right: 10px; border-width: 0 2px 2px 0; }

.sa-team-card:hover .sa-team-mark { width: 34px; height: 34px; }

.sa-team-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-left: 0.85rem;
  border-left: 2px solid var(--sa-gold);
}

.sa-team-name {
  margin: 0;
  font-family: var(--sa-font-accent);
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--sa-text);
  line-height: 1.3;
  text-wrap: balance;
}

.sa-team-role {
  margin: 0;
  font-size: 0.85rem;
  color: var(--sa-gold);
  font-weight: 500;
  line-height: 1.45;
}

.sa-team-bio {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: var(--sa-text-muted);
  line-height: 1.6;
  font-weight: 300;
}

@media (max-width: 640px) {
  .sa-team-section { padding: 4.5rem 0; }
  .sa-team-name { font-size: 0.9rem; }
  .sa-team-role, .sa-team-bio { font-size: 0.8rem; }
  .sa-team-mark { width: 16px; height: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .sa-team-photo img, .sa-team-mark { transition: none; }
  .sa-team-card:hover .sa-team-photo img { transform: none; }
}

/* ==========================================================================
   16. TRANG DỰ ÁN KIỂU PORTFOLIO (archive-portfolio.php, 0.3.4)
   ========================================================================== */
.sa-pf { --sa-pf-line: rgba(255, 255, 255, 0.1); }

/* Đầu trang */
.sa-pf-dau {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 3.5rem;
}
.sa-pf-dau-nen {
  position: absolute;
  bottom: -0.15em;
  left: -2rem;
  pointer-events: none;
  z-index: 0;
}
.sa-pf-dau-trong {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3rem;
  align-items: end;
}
@media (min-width: 1024px) {
  .sa-pf-dau { padding: 6rem 0 4.5rem; }
}
.sa-pf-tieu-de {
  font-size: clamp(2.4rem, 6.2vw, 5.2rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 1rem 0 1.5rem;
}
.sa-pf-tieu-de em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--sa-gold);
}
.sa-pf-mo-ta {
  max-width: 56ch;
  color: var(--sa-text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
  font-weight: 300;
  margin: 0;
}

/* Thanh công cụ dính khi cuộn */
.sa-pf-thanh {
  position: sticky;
  top: var(--sa-header-compact-height);
  z-index: 50;
  background: rgba(18, 18, 18, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--sa-pf-line);
  border-bottom: 1px solid var(--sa-pf-line);
  margin-bottom: 3rem;
}
.sa-pf-thanh-trong {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 60px;
}
.sa-pf-loc {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1 1 auto;
  min-width: 0;
  -webkit-mask-image: linear-gradient(to right, #000 88%, transparent);
  mask-image: linear-gradient(to right, #000 88%, transparent);
  padding-right: 2rem;
}
.sa-pf-loc::-webkit-scrollbar { display: none; }
@media (min-width: 1200px) {
  .sa-pf-loc { -webkit-mask-image: none; mask-image: none; padding-right: 0; }
}
.sa-pf-loc-muc {
  flex: 0 0 auto;
  font-family: var(--sa-font-accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--sa-text-muted);
  padding: 0.5rem 0.9rem;
  border: 1px solid transparent;
  border-radius: 999px;
  white-space: nowrap;
}
.sa-pf-loc-muc:hover { color: var(--sa-text); border-color: var(--sa-pf-line); }
.sa-pf-loc-muc.active {
  color: var(--sa-text-dark);
  background: var(--sa-gold);
  border-color: var(--sa-gold);
}
.sa-pf-che-do {
  display: flex;
  border: 1px solid var(--sa-pf-line);
}
.sa-pf-che-do a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 36px;
  color: var(--sa-text-muted);
}
.sa-pf-che-do a + a { border-left: 1px solid var(--sa-pf-line); }
.sa-pf-che-do a:hover { color: var(--sa-text); }
.sa-pf-che-do a.active { color: var(--sa-gold); background: var(--sa-gold-dim); }
@media (max-width: 767px) {
  .sa-pf-thanh-trong { gap: 0.5rem; padding-right: 0.75rem; }
  .sa-pf-loc-muc { padding: 0.45rem 0.75rem; }
}

/* Dự án nổi bật */
.sa-pf-noi-bat {
  display: grid;
  gap: 2rem;
  margin-bottom: 5rem;
  padding-bottom: 5rem;
  border-bottom: 1px solid var(--sa-pf-line);
}
@media (min-width: 1024px) {
  .sa-pf-noi-bat { grid-template-columns: 7fr 5fr; gap: 3.5rem; align-items: center; }
}
.sa-pf-noi-bat-anh {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--sa-bg-surface-alt);
}
@media (min-width: 1024px) {
  .sa-pf-noi-bat-anh { aspect-ratio: auto; height: clamp(380px, 42vw, 580px); }
}
.sa-pf-noi-bat-anh img,
.sa-pf-the-anh img,
.sa-pf-ds-anh img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sa-pf-noi-bat-anh img { transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1); }
.sa-pf-noi-bat:hover .sa-pf-noi-bat-anh img { transform: scale(1.03); }
.sa-pf-noi-bat-chu { position: relative; }
.sa-pf-noi-bat h2 {
  text-wrap: balance;
  font-size: clamp(1.8rem, 3.2vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0.9rem 0 0.75rem;
}
.sa-pf-noi-bat h2 a { color: var(--sa-text); }
.sa-pf-noi-bat h2 a:hover { color: var(--sa-gold); }
.sa-pf-noi-bat-phu { color: var(--sa-text-muted); font-weight: 300; margin: 0 0 1.25rem; }
.sa-pf-thong-so {
  margin: 1.5rem 0 2rem;
  border-top: 1px solid var(--sa-pf-line);
}
.sa-pf-thong-so > div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--sa-pf-line);
  font-size: 0.92rem;
}
.sa-pf-thong-so dt {
  font-family: var(--sa-font-accent);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--sa-text-muted);
  padding-top: 0.2rem;
}
.sa-pf-thong-so dd { margin: 0; color: var(--sa-text); }

/* Lưới: hàng 2 thẻ (7/5 đổi bên) và hàng 3 thẻ */
.sa-pf-luoi {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem 1.75rem;
}
@media (min-width: 640px) {
  .sa-pf-luoi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sa-pf-c12 { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .sa-pf-luoi { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4.5rem 2rem; }
  .sa-pf-c4 { grid-column: span 4; }
  .sa-pf-c5 { grid-column: span 5; }
  .sa-pf-c7 { grid-column: span 7; }
  .sa-pf-c12 { grid-column: span 12; }
}
.sa-pf-the > a { display: block; color: inherit; }
.sa-pf-the-anh {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--sa-bg-surface-alt);
}
@media (min-width: 900px) {
  .sa-pf-the--lon .sa-pf-the-anh { aspect-ratio: auto; height: clamp(320px, 34vw, 480px); }
  .sa-pf-the--nho .sa-pf-the-anh { aspect-ratio: auto; height: clamp(240px, 23vw, 330px); }
  .sa-pf-the--rong .sa-pf-the-anh { aspect-ratio: 21 / 9; }
}
.sa-pf-the-anh img {
  filter: saturate(0.9);
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
}
.sa-pf-the-anh::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(212, 160, 23, 0);
  transition: border-color 0.4s ease, inset 0.4s ease;
  pointer-events: none;
}
.sa-pf-the > a:hover .sa-pf-the-anh img { transform: scale(1.045); filter: saturate(1.05); }
.sa-pf-the > a:hover .sa-pf-the-anh::after { inset: 12px; border-color: rgba(212, 160, 23, 0.7); }
.sa-pf-the-trong {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--sa-gold);
  font-family: var(--sa-font-accent);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
}
.sa-pf-the-chu { padding-top: 1.1rem; }
.sa-pf-the-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--sa-font-accent);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--sa-text-muted);
  margin-bottom: 0.6rem;
}
.sa-pf-the-meta::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--sa-pf-line);
  transition: background-color 0.4s ease;
}
.sa-pf-the > a:hover .sa-pf-the-meta::after { background: var(--sa-gold); }
.sa-pf-the h3 {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0 0 0.35rem;
  color: var(--sa-text);
  transition: color 0.2s ease;
}
.sa-pf-the--lon h3,
.sa-pf-the--rong h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
.sa-pf-the > a:hover h3 { color: var(--sa-gold); }
.sa-pf-the-phu {
  margin: 0 0 0.35rem;
  color: var(--sa-text-muted);
  font-size: 0.9rem;
  font-weight: 300;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sa-pf-the-thong-so {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(245, 245, 245, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Dạng danh sách */
.sa-pf-ds {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--sa-pf-line);
}
.sa-pf-ds > li { border-bottom: 1px solid var(--sa-pf-line); margin: 0; }
.sa-pf-ds-dong,
.sa-pf-ds-dau {
  display: grid;
  grid-template-columns: 72px minmax(0, 2.4fr) minmax(0, 1fr) minmax(0, 1.4fr) 5rem;
  gap: 1.25rem;
  align-items: center;
  padding: 0.85rem 0.5rem;
}
.sa-pf-ds-dau {
  font-family: var(--sa-font-accent);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--sa-text-muted);
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}
.sa-pf-ds-dong { color: var(--sa-text); transition: background-color 0.2s ease; }
.sa-pf-ds-dong:hover { background: var(--sa-bg-surface-alt); color: var(--sa-text); }
.sa-pf-ds-dong:hover strong { color: var(--sa-gold); }
.sa-pf-ds-anh {
  display: block;
  width: 72px;
  height: 54px;
  overflow: hidden;
  background: var(--sa-bg-surface-alt);
}
.sa-pf-ds-ten strong { display: block; font-weight: 700; line-height: 1.3; transition: color 0.2s ease; }
.sa-pf-ds-ten small { display: block; color: var(--sa-text-muted); font-size: 0.8rem; margin-top: 0.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sa-pf-ds-nhom,
.sa-pf-ds-noi { font-size: 0.85rem; color: var(--sa-text-muted); }
.sa-pf-ds-ti-le { font-variant-numeric: tabular-nums; color: var(--sa-gold); font-weight: 700; font-size: 0.9rem; }
@media (max-width: 767px) {
  .sa-pf-ds-dau { display: none; }
  .sa-pf-ds-dong {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 0.25rem 0.9rem;
    padding: 0.85rem 0;
  }
  .sa-pf-ds-anh { width: 64px; height: 48px; grid-row: span 2; }
  .sa-pf-ds-ten { grid-column: 2; grid-row: 1; }
  .sa-pf-ds-nhom { grid-column: 2; grid-row: 2; font-size: 0.75rem; }
  .sa-pf-ds-noi { display: none; }
  .sa-pf-ds-ti-le { grid-column: 3; grid-row: 1; font-size: 0.8rem; }
}

.sa-pf-trong { padding: 4rem 0; text-align: center; color: var(--sa-text-muted); }

/* Khối liên hệ cuối trang */
.sa-pf-lien-he {
  margin-top: 5rem;
  padding: 4.5rem 0;
  background:
    linear-gradient(rgba(212, 160, 23, 0.06) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(212, 160, 23, 0.06) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--sa-bg-surface);
  border-top: 1px solid var(--sa-pf-line);
}
.sa-pf-lien-he-trong { display: grid; gap: 2rem; align-items: end; }
@media (min-width: 1024px) {
  .sa-pf-lien-he-trong { grid-template-columns: minmax(0, 1fr) auto; gap: 4rem; }
}
.sa-pf-lien-he h2 {
  text-wrap: balance;
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0.9rem 0 0.75rem;
  max-width: 20ch;
}
.sa-pf-lien-he p { color: var(--sa-text-muted); margin: 0; font-weight: 300; }
.sa-pf-lien-he-nut { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (max-width: 520px) {
  .sa-pf-lien-he-nut > a { flex: 1 1 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .sa-pf-the-anh img, .sa-pf-noi-bat-anh img { transition: none; }
  .sa-pf-the > a:hover .sa-pf-the-anh img, .sa-pf-noi-bat:hover .sa-pf-noi-bat-anh img { transform: none; }
}

/* Giới thiệu nhóm (mô tả danh mục, cuối trang danh mục) */
.sa-pf-gioi-thieu { margin-top: 5rem; }
.sa-pf-gioi-thieu-trong {
  max-width: 760px;
  padding-top: 3rem;
  border-top: 1px solid var(--sa-pf-line);
}
.sa-pf-gioi-thieu h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin-bottom: 1.25rem;
}
.sa-pf-gioi-thieu-chu { color: var(--sa-text-muted); font-weight: 300; line-height: 1.8; }
.sa-pf-gioi-thieu-chu p { margin: 0 0 1rem; }
.sa-pf-gioi-thieu-chu a {
  color: var(--sa-text);
  text-decoration: underline;
  text-decoration-color: var(--sa-gold);
  text-underline-offset: 3px;
}
.sa-pf-gioi-thieu-chu a:hover { color: var(--sa-gold); }

/* ==========================================================================
   KHỐI WPBAKERY CŨ NỀN SÁNG + CHỮ SÁNG (chữ trùng màu nền) — sửa 11/11/2026 (0.3.10, Sếp yêu cầu)
   Quét 195 trang: thẻ/xổ xuống vc_tta (9 trang), khung kêu gọi vc_cta3 (2), lưới bài vc_gitem (2), mục lục LuckyWP (1).
   Cách sửa: đưa các khối này về nền tối của giao diện, chữ sáng, điểm nhấn vàng.
   ========================================================================== */
/* Thẻ (tabs) và xổ xuống (accordion) */
.vc_tta.vc_general .vc_tta-panel-heading,
.vc_tta.vc_general .vc_tta-panel-body,
.vc_tta.vc_general .vc_tta-tab a,
.vc_tta.vc_general .vc_tta-panel.vc_active .vc_tta-panel-heading,
.vc_tta.vc_general .vc_tta-tab.vc_active a {
  background-color: var(--sa-bg-surface-alt) !important;
  border-color: var(--sa-border) !important;
}
.vc_tta.vc_general .vc_tta-panel.vc_active .vc_tta-panel-heading,
.vc_tta.vc_general .vc_tta-tab.vc_active a {
  background-color: var(--sa-bg-card) !important;
  border-color: var(--sa-gold) !important;
}
.vc_tta.vc_general .vc_tta-panel-title > a,
.vc_tta.vc_general .vc_tta-tab a,
.vc_tta.vc_general .vc_tta-title-text {
  color: var(--sa-gold) !important;
}
.vc_tta.vc_general .vc_tta-controls-icon::before,
.vc_tta.vc_general .vc_tta-controls-icon::after {
  border-color: var(--sa-gold) !important;
}
.vc_tta.vc_general .vc_tta-panel-body,
.vc_tta.vc_general .vc_tta-panel-body p,
.vc_tta.vc_general .vc_tta-panel-body li,
.vc_tta.vc_general .vc_tta-panel-body span,
.vc_tta.vc_general .vc_tta-panel-body div {
  color: #E8E8E8;
}

/* Khung kêu gọi (CTA) */
.vc_cta3,
.vc_cta3.vc_cta3-color-classic,
.vc_cta3[class*="vc_cta3-color-"] {
  background-color: var(--sa-bg-surface-alt) !important;
  border: 1px solid var(--sa-border) !important;
  border-left: 3px solid var(--sa-gold) !important;
}
.vc_cta3 .vc_cta3-content-header h2,
.vc_cta3 .vc_cta3-content-header h3,
.vc_cta3 .vc_cta3-content-header h4,
.vc_cta3 .vc_cta3-content-header *,
.vc_cta3 .vc_cta3-content p {
  color: var(--sa-text) !important;
}
.vc_cta3 .vc_cta3-content-header h4,
.vc_cta3 .vc_cta3-content-header h4 * {
  color: var(--sa-text-muted) !important;
}
.vc_cta3 .vc_btn3 {
  background-color: var(--sa-gold) !important;
  border-color: var(--sa-gold) !important;
  color: var(--sa-text-dark) !important;
}
.vc_cta3 .vc_btn3:hover {
  background-color: var(--sa-gold-hover) !important;
}

/* Lưới bài WPBakery (vùng chữ) */
.vc_gitem-zone.vc_gitem-zone-c {
  background-color: var(--sa-bg-surface-alt) !important;
}
.vc_gitem-zone.vc_gitem-zone-c h4,
.vc_gitem-zone.vc_gitem-zone-c p,
.vc_gitem-zone.vc_gitem-zone-c * {
  color: #E8E8E8;
}

/* Mục lục LuckyWP: link có nền sáng riêng */
.lwptoc .lwptoc_item a,
.lwptoc .lwptoc_toggle_label,
.lwptoc .lwptoc_toggle {
  background: transparent !important;
}
.lwptoc .lwptoc_toggle_label { color: var(--sa-text-muted) !important; }
